Bug 100723 - Automatic cell styles. Attribute "style:vertical-align" has a bad value
Summary: Automatic cell styles. Attribute "style:vertical-align" has a bad value
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.6.0.4 release
Hardware: All All
: low trivial
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-01 12:46 UTC by Jakub Trzebiatowski
Modified: 2017-09-01 12:33 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jakub Trzebiatowski 2016-07-01 12:46:39 UTC
Hello,

I think there is a bug with automatic cell styles export.
When you attach a style to a table then automatic cell styles are exported incorectly.

How to reproduce
1. Create new doc.
2. Insert table (any size).
3. Open table autoformat window.
4. Add new format (any name).
5. Click OK (apply newly created style to the table).
5. Export doc.

Automatic cell-styles (stored in content.xml) now have following attribute style:vertical-align="" (bad value).

Confirmed in 5.1.4 Windows 10 64 bit and 5.0.4.2 OpenSuse 42.1 64 bit
Comment 1 Daniël van Vuuren 2016-07-06 14:44:01 UTC
Hello Jakub Trzebiatowski,

Thank you for reporting the bug. I can confirm that the bug is present in versions 3.6.0.4 up to master.

To reproduce you don't need to create a new autoformat style

How to reproduce
1. Create new document.
2. Insert table.
3. Open table autoformat window.
4. Save document.

View bad value
1. Unzip content.xml from document.
2. content.xml has an empty style value:
style:vertical-align=""

btw there is another empty style value:
style:master-page-name=""


Tested it on Ubuntu 16.04 64bit
LibreOffice
Version 3.6.0.4 (Build ID: 932b512)

and a lot of later versions up to

Version: 5.3.0.0.alpha0+
Build ID: eff871de05c5efdac0d0397b539b3b5e999672c9
CPU Threads: 2; OS Version: Linux 4.4; UI Render: default; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2016-07-06_00:33:49
Locale: nl-NL (nl_NL.UTF-8); Calc: group
Comment 2 QA Administrators 2017-09-01 11:14:52 UTC Comment hidden (obsolete)
Comment 3 Regina Henschel 2017-09-01 12:33:17 UTC
There is no attribute style:vertical-align="" neither with the old autoformat nor with the new table styles. The value "" for the attribute style:master-page-name is a valid, the value <empty/> is allowed for "styleNameRef".

I have tested it in Version: 6.0.0.0.alpha0+
Build ID: 4c99b8a9de59f3c5280ff2944d9f828822897f4a
CPU threads: 4; OS: Windows 6.1; UI render: default; 
Locale: de-DE (de_DE); Calc: group