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: 2023-12-11 12:42 UTC (History)
2 users (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
Table made by PowerPoint export to odp (21.70 KB, application/vnd.oasis.opendocument.presentation)
2021-12-10 17:56 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
Comment 4 QA Administrators 2019-11-07 03:35:33 UTC Comment hidden (obsolete)
Comment 5 Regina Henschel 2019-11-07 12:38:32 UTC
The error still exists as described in Version: 6.4.0.0.alpha1+ (x64)
Build ID: 7c6226bee72805db7f0e567ca9f06c786a7d0da2
CPU threads: 8; OS: Windows 10.0 Build 18362; UI render: default; VCL: win; 
Locale: de-DE (en_US); UI-Language: en-US
Calc: threaded
Comment 6 QA Administrators 2021-11-07 04:22:21 UTC Comment hidden (obsolete)
Comment 7 Regina Henschel 2021-11-07 13:25:46 UTC
The error still exists as described in Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: e1646284ef5a0367c770fa27299db64eedc30cbb
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (en_US); UI: en-US
Calc: CL
Comment 8 Regina Henschel 2021-12-10 17:56:37 UTC
Created attachment 176849 [details]
Table made by PowerPoint export to odp

This affects also import. A file with the correct attribute style:vertical-align is wrongly read. Such files are produced by PowerPoint, if it writes a presentation to ODF.

The attribute is in section 20.396.2 in ODF 1.3.
Comment 9 QA Administrators 2023-12-11 03:14:27 UTC Comment hidden (obsolete)
Comment 10 Regina Henschel 2023-12-11 12:42:11 UTC
The import from the file generated by PowerPoint is correct now. But LibreOffice still writes the alignment into the wrong attribute. Tested with Version: 24.2.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 43967453e15e1d054972a7586cfef8f8e0866270
CPU threads: 32; OS: Windows 10.0 Build 22631; UI render: Skia/Vulkan; VCL: win
Locale: de-DE (de_DE); UI: en-US
Calc: threaded