<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><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> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [TABLE] Table properties reset if Document Properties "Only embed fonts that are used in documents" is set"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=127036">bug 127036</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Ever confirmed</td>
           <td>
                
           </td>
           <td>1
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Version</td>
           <td>6.3.0.4 release
           </td>
           <td>6.2.0.0.alpha0+
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Hardware</td>
           <td>x86-64 (AMD64)
           </td>
           <td>All
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>quikee@gmail.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>UNCONFIRMED
           </td>
           <td>NEW
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [TABLE] Table properties reset if Document Properties "Only embed fonts that are used in documents" is set"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=127036#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [TABLE] Table properties reset if Document Properties "Only embed fonts that are used in documents" is set"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=127036">bug 127036</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>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

<span class="quote">> <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/>
>     ...</span >
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</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>