richedit: Fix modify step setting in EM_SETCHARFORMAT.
authorAlex Villacís Lasso <a_villacis@palosanto.com>
Sun, 27 Apr 2008 18:17:28 +0000 (13:17 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 29 Apr 2008 12:56:23 +0000 (14:56 +0200)
commit3cad256d54eb7071a3693102ee683bdbbd087227
tree7589d388b76f1a47d4f40f1d11d202d69ac7eab2
parent1fa39b50c0bafeb72e85c257391e6cd5fb70182d
richedit: Fix modify step setting in EM_SETCHARFORMAT.

EM_SETCHARFORMAT with wParam==0 sets default char format and does NOT set modify step flag.
EM_SETCHARFORMAT with wParam==SCF_SELECTION only sets modify step flag when selection is nonempty.
EM_GETMODIFY returns -1, not 1, when modify flag is set.
Tests for the above behavior.
dlls/riched20/editor.c
dlls/riched20/tests/editor.c