[Libreoffice-bugs] [Bug 127036] [TABLE] Table properties reset if Document Properties "Only embed fonts that are used in documents" is set

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Aug 20 12:12:18 UTC 2019


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

Mike Kaganski <mikekaganski at hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
            Version|6.3.0.4 release             |6.2.0.0.alpha0+
           Hardware|x86-64 (AMD64)              |All
                 CC|                            |quikee at gmail.com
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Mike Kaganski <mikekaganski at hotmail.com> ---
The problem is in XMLFontAutoStylePool::exportXML, which calls
XMLFontAutoStylePool::getUsedFontList. The latter in turn calls
SwXMLExport::collectAutoStyles, and that one indirectly writes the autostyle
entries. It is used in SwXMLExport::ExportAutoStyles_ called from
SvXMLExport::ImplExportAutoStyles, and there it is wrapped into
XML_AUTOMATIC_STYLES element.

The resulting XML structure in content.xml is

> <office:document-content ...>
>     ...
>     <office:font-face-decls>
>         <style:style style:name="Table1" style:family="table">
>             <style:table-properties style:width="17.013cm" fo:margin-left="0cm" table:align="left"/>
>         </style:style>
>         <style:style style:name="Table1.A" style:family="table-column">
>             <style:table-column-properties style:column-width="1.508cm"/>
>         </style:style>
>         ...
>         <style:font-face style:name="Arial1" svg:font-family="Arial" style:font-family-generic="swiss"/>
>         ...
>     </office:font-face-decls>
>     <office:automatic-styles/>
>     ...
where automatic styles, including those with table properties, are inside
office:font-face-decls element, and the office:automatic-styles element is
empty.

Adding Tomaž Vajngerl, the author of
https://git.libreoffice.org/core/+/1a8435a23e84f3ceeee580eb9d4404a738d98888.
Tomaž, the problem existed before the said patch (didn't try to check if that's
a regression, or had it existed from the start of introducing the setting), but
you are the expert here; do you have an idea how to fix this?

Note that this problem occurs even when fonts aren't embedded at all (i.e., the
top setting "Embed fonts in the document" in the dialog is unchecked) - so
there's also likely performance problem, that some code unnecessarily runs when
not needed.

Already reproducible with Version: 6.2.0.0.alpha0+
Build ID: 68d3a44bc96041982cb38c140c0f9628dc8547c5
CPU threads: 12; OS: Windows 10.0; UI render: GL; 
Locale: ru-RU (ru_RU); Calc: group threaded

-- 
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/20190820/a1492a0d/attachment-0001.html>


More information about the Libreoffice-bugs mailing list