Commit d360f1db authored by Phil Krylov's avatar Phil Krylov Committed by Alexandre Julliard

riched20: Accept RTF group tokens inside colortbl destination.

parent 387c982d
......@@ -1057,6 +1057,7 @@ static void ReadColorTbl(RTF_Info *info)
RTFColor *cp;
int cnum = 0;
const char *fn = "ReadColorTbl";
int group_level = 1;
TRACE("\n");
......@@ -1066,7 +1067,18 @@ static void ReadColorTbl(RTF_Info *info)
if (info->rtfClass == rtfEOF)
break;
if (RTFCheckCM (info, rtfGroup, rtfEndGroup))
break;
{
group_level--;
if (!group_level)
break;
continue;
}
else if (RTFCheckCM(info, rtfGroup, rtfBeginGroup))
{
group_level++;
continue;
}
cp = New (RTFColor);
if (cp == NULL)
ERR ( "%s: cannot allocate color entry\n", fn);
......
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