[Libreoffice-bugs] [Bug 77962] FILEOPEN: WPS DOC - incorrect font colours imported (16 palette colours = use comment 11's doc)

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Jul 16 14:39:34 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=77962

Justin L <jluth at mail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|FILEOPEN: WPS DOC -         |FILEOPEN: WPS DOC -
                   |incorrect font colors       |incorrect font colours
                   |imported                    |imported (16 palette
                   |                            |colours = use comment 11's
                   |                            |doc)
           Assignee|libreoffice-bugs at lists.free |jluth at mail.com
                   |desktop.org                 |

--- Comment #14 from Justin L <jluth at mail.com> ---
There is a "new" sprmCCv used by Read_TextForeColor which can be any RGB color
- and that is what is processed after Word 2003 roundtrips the file.

In this Kingsoft document, LO can only use the older sprmCIco, read by
Read_TextColor, which references a 16 bit table defined by 2.9.119 Ico

There are a lot of errors when reading this document:
    sprm longer[6] than remaining[4] bytes, doc or parser is wrong

mso-dumper does indicate that CCv sprms exists in the document, but they are
never seen/processed in LO.

<prl type="Prl" offset="4541" index="0">
<sprm value="0x2a42" ispmd="0x42" fSpec="0x1" sgc="character" spra="1"
name="sprmCIco" operandSize="1" operand="0x10"/>
</prl>
<prl type="Prl" offset="4544" index="1">
<sprm value="0x4a60" ispmd="0x60" fSpec="0x1" sgc="character" spra="2"
name="sprmCIcoBi" operandSize="2" operand="0x10"/>
</prl>
<prl type="Prl" offset="4548" index="2">
<sprm value="0x6870" ispmd="0x70" fSpec="0x0" sgc="character" spra="3"
name="sprmCCv" operandSize="4" operand="0xe7c6b4"/>

=====================================================================
proposed fix at http://gerrit.libreoffice.org/c/core/+/98911

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200716/64612d93/attachment.htm>


More information about the Libreoffice-bugs mailing list