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

Dylan Smith dylan.ah.smith at
Thu Sep 11 09:27:31 CDT 2008

I noticed that this introduced a glitch, because I didn't have a destination
callback for the \nesttableprops control word.  This led to it being
ignored, so nested tables would take on default properties.

I will update this patch to fix this glitch and then resend it.

On Wed, Sep 10, 2008 at 10:54 PM, Dylan Smith <dylan.ah.smith at>wrote:

> 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 HTML attachment was scrubbed...

More information about the wine-devel mailing list