riched20: Accept RTF group tokens inside colortbl destination.

This commit is contained in:
Phil Krylov 2006-08-10 23:08:17 +04:00 committed by Alexandre Julliard
parent 387c982d5c
commit d360f1db51
1 changed files with 13 additions and 1 deletions

View File

@ -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);