richedit: Avoid acting on control words in skipped RTF groups (Bug 15227)

Dylan Smith dylan.ah.smith at gmail.com
Wed Sep 10 21:54:12 CDT 2008


Previously the control words in skipped groups were being processed by
the read hook on the RTF parser.  By moving this code into the class
callbacks for the parser, the skipped groups actually remain skipped.

An example of a skipped group is a optional destination that isn't
recognized by the parser.  The RTF specifications say to ignore these
groups, and native richedit controls act accordingly.

This patch fixes bug 15227 which was caused by the \itap4 control word
in a destination which caused an unterminated table, since this control
word changes the nesting level by starting nested tables to reach that
nesting level.
---
 dlls/riched20/editor.c |   28 ++++++----------------------
 dlls/riched20/editor.h |    6 ++++++
 dlls/riched20/reader.c |    8 ++++++++
 3 files changed, 20 insertions(+), 22 deletions(-)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-richedit-Avoid-acting-on-control-words-in-skippe.diff.txt
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20080910/133ecd49/attachment.txt 


More information about the wine-patches mailing list