<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Table settings and borders are not saved if checked "Embed fonts" and "Only embed fonts that are used""
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=124470#c15">Comment # 15</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Table settings and borders are not saved if checked "Embed fonts" and "Only embed fonts that are used""
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=124470">bug 124470</a>
              from <span class="vcard"><a class="email" href="mailto:mikekaganski@hotmail.com" title="Mike Kaganski <mikekaganski@hotmail.com>"> <span class="fn">Mike Kaganski</span></a>
</span></b>
        <pre>Citing myself from <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED DUPLICATE - [TABLE] Table properties reset if Document Properties "Only embed fonts that are used in documents" is set"
   href="show_bug.cgi?id=127036#c1">bug 127036 comment #1</a> (how could I forget answering to that
bug, that I myself filed this one):
<span class="quote">> 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
> <a href="https://git.libreoffice.org/core/+/1a8435a23e84f3ceeee580eb9d4404a738d98888">https://git.libreoffice.org/core/+/1a8435a23e84f3ceeee580eb9d4404a738d98888</a>.
> 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</span ></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>