Bug Hunting Session
Bug 101758 - Do not use loext:graphic-properties for vertical-align in table in Draw/Impress
Summary: Do not use loext:graphic-properties for vertical-align in table in Draw/Impress
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
5.3.0.0.alpha0+
Hardware: x86 (IA32) All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:odf
Depends on:
Blocks: Table-Styles ODF-export-invalid
  Show dependency treegraph
 
Reported: 2016-08-27 18:13 UTC by Regina Henschel
Modified: 2018-11-06 14:14 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Document created as described, contains table with vertical alignment (11.47 KB, application/vnd.oasis.opendocument.graphics)
2016-08-27 18:13 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2016-08-27 18:13:19 UTC
Created attachment 127051 [details]
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.
Comment 1 Buovjaga 2016-09-23 19:46:48 UTC
Repro.

Arch Linux 64-bit, KDE Plasma 5
Version: 5.3.0.0.alpha0+
Build ID: cd72269a6a2c85ae9dd4552aa4808ef4fd1f6c0e
CPU Threads: 8; OS Version: Linux 4.7; UI Render: default; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on September 21st 2016
Comment 2 QA Administrators 2018-05-29 02:37:11 UTC Comment hidden (obsolete)
Comment 3 Regina Henschel 2018-11-06 14:14:57 UTC
The error still exists in Version: 6.2.0.0.alpha1+ (x64)
Build ID: f825e6d4082c0d0beb1c95b881f6a2ee9bfc9161
CPU threads: 8; OS: Windows 10.0; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-11-05_00:20:26
Locale: de-DE (en_US); Calc: CL