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

            Bug ID: 101758
           Summary: Do not use loext:graphic-properties for vertical-align
                    in table in Draw/Impress
           Product: LibreOffice
           Version: 5.3.0.0.alpha0+ Master
          Hardware: x86 (IA32)
                OS: Windows (All)
            Status: UNCONFIRMED
          Keywords: filter:odf
          Severity: normal
          Priority: medium
         Component: Impress
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: rb.hensc...@t-online.de

Created attachment 127051
  --> https://bugs.documentfoundation.org/attachment.cgi?id=127051&action=edit
Document created as described, contains table with vertical alignment

Start a new Draw or Impress document. Insert a 5x5 table and enter some dummy
content. Mark whole table and set "vertical align" for the cells via table
toolbar. Save.

LibreOffice writes a <style:style> element of family "table-cell" as child of
<office:automatic-styles> in content.xml. It has an element
<loext:graphic-properties> with attribute
draw:textarea-vertical-align="middle".

Using namespace loext prevents the validation error; <style:graphic-properties>
is not allowed in case style:famile="table-cell". But it is a wrong approach to
try to use "graphic-properties" at all.

The correct approach to get the vertical alignment for a cell, is using the
element <style:table-cell-properties> with the attribute
style:vertical-align="middle", see section 20.386.2 in the ODF spec.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to