wordpad: Empty the richedit undo buffer on creation.

Dylan Smith dylan.ah.smith at gmail.com
Wed May 7 23:07:59 CDT 2008


Two calls to set_default_font are made during creation of the main
windows, which send an EM_SETCHARFORMAT to the rich edit control. This
results in the undo buffer being having two transactions to undo at the
start of the program.

The fix is simply to empty the undo buffer after these undo items are
added to the rich edit control.
---
 programs/wordpad/wordpad.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wordpad-Empty-undo-buffer-on-creation.diff
Type: text/x-diff
Size: 571 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080508/848178d3/attachment.diff 


More information about the wine-patches mailing list