Commit 0d8e9e62 authored by Dylan Smith's avatar Dylan Smith Committed by Alexandre Julliard

richedit: Make sure the nested tables' RTF properties are not skipped.

parent d7ff2437
......@@ -1476,7 +1476,10 @@ static LRESULT ME_StreamIn(ME_TextEditor *editor, DWORD format, EDITSTREAM *stre
RTFSetDestinationCallback(&parser, rtfPict, ME_RTFReadPictGroup);
RTFSetDestinationCallback(&parser, rtfObject, ME_RTFReadObjectGroup);
if (!parser.editor->bEmulateVersion10) /* v4.1 */
{
RTFSetDestinationCallback(&parser, rtfNoNestTables, RTFSkipGroup);
RTFSetDestinationCallback(&parser, rtfNestTableProps, RTFReadGroup);
}
BeginFile(&parser);
/* do the parsing */
......
......@@ -406,6 +406,16 @@ void RTFSkipGroup(RTF_Info *info)
}
}
/*
* Do no special processing on the group.
*
* This acts as a placeholder for a callback in order to indicate that it
* shouldn't be ignored. Instead it will fallback on the loop in RTFRead.
*/
void RTFReadGroup (RTF_Info *info)
{
}
/*
* Read one token. Call the read hook if there is one. The
......
......@@ -1211,6 +1211,7 @@ void RTFSetReadHook (RTF_Info *, RTFFuncPtr);
RTFFuncPtr RTFGetReadHook (const RTF_Info *);
void RTFRouteToken (RTF_Info *);
void RTFSkipGroup (RTF_Info *);
void RTFReadGroup (RTF_Info *);
void RTFExpandStyle (RTF_Info *, int);
int RTFCheckCM (const RTF_Info *, int, int);
int RTFCheckCMM (const RTF_Info *, int, int, int);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment