riched20: Only write out non-default pattern colours.
Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
30e8768d00
commit
d4b1938cfb
|
@ -723,8 +723,10 @@ ME_StreamOutRTFParaProps(ME_TextEditor *editor, ME_OutStream *pStream,
|
|||
sprintf(props + strlen(props), "\\shading%d", fmt->wShadingWeight);
|
||||
if (fmt->wShadingStyle & 0xF)
|
||||
strcat(props, style[fmt->wShadingStyle & 0xF]);
|
||||
sprintf(props + strlen(props), "\\cfpat%d\\cbpat%d",
|
||||
(fmt->wShadingStyle >> 4) & 0xF, (fmt->wShadingStyle >> 8) & 0xF);
|
||||
if ((fmt->wShadingStyle >> 4) & 0xf)
|
||||
sprintf(props + strlen(props), "\\cfpat%d", (fmt->wShadingStyle >> 4) & 0xf);
|
||||
if ((fmt->wShadingStyle >> 8) & 0xf)
|
||||
sprintf(props + strlen(props), "\\cbpat%d", (fmt->wShadingStyle >> 8) & 0xf);
|
||||
}
|
||||
if (*props)
|
||||
strcat(props, " ");
|
||||
|
|
Loading…
Reference in New Issue