richedit: Caret size must match font size characters to be inserted.

Dylan Smith dylan.ah.smith at gmail.com
Thu Jun 26 15:17:32 CDT 2008


When the caret is at the start of a run, it uses the font of the
previous run for inserting characters.  The caret size previously was
the wrong height for the characters being inserted when the caret was at
the start of a line, but not the start of a paragraph so this patch
fixes this bug.

To test the bug open wordpad and enter text that wraps to a second line,
increase the font size of the text at the start of the second line, then
place the cursor at the start of the second line.  The caret will be
larger than it should be, indicating that the larger font of the start
of the second line will be used, but characters typed will be in the
smaller font used at the end of the first line.

It was tested against native richedit versions 1.0,
3.0, and 4.1, and the behaviour is consistent with all of them now.
---
 dlls/riched20/caret.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-richedit-Caret-size-must-match-font-size-charact.diff.txt
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20080626/a7c3778d/attachment.txt 


More information about the wine-patches mailing list