Bug 76736 - ODF import: default-cell-style-name attribute is ignored everywhere when last of table row has no such attribute.
Summary: ODF import: default-cell-style-name attribute is ignored everywhere when last...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
(earliest affected) release
Hardware: All All
: medium normal
Assignee: Not Assigned
Whiteboard: BSA odf
Depends on:
Blocks: ODF-import
  Show dependency treegraph
Reported: 2014-03-28 13:41 UTC by Dorian
Modified: 2023-12-08 08:32 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:

Test file as mentioned in long description (1.68 KB, application/vnd.oasis.opendocument.spreadsheet)
2014-03-28 13:41 UTC, Dorian

Note You need to log in before you can comment on or make changes to this bug.
Description Dorian 2014-03-28 13:41:43 UTC
Created attachment 96531 [details]
Test file as mentioned in long description

Problem description: 

LibreOffice ignores the table:default-cell-style-name attribute in a <table:table-row> element if the last row in the table does not have this attribute set.

Steps to reproduce:
1. Open attached test.ods in LibreOffice
2. Note that cell text in A1 is in a non-bold font
3. Close document without saving
4. Open test.ods in text editor and change contained content.xml by
5. removing the empty <table:table-row></table:table-row> element at line 16
6. Save test.ods and open in LibreOffice
7. Cell text in A1 is in bold font
Current behavior:
It seems that whenever the last row in a table does not have a default-cell-style-name attribute set, the attribute is ignored for all other rows.

Expected behavior:
The cell A1 should always be formatted in bold font, regardless of any other rows.
Operating System: Mac OS X
Version: release
Comment 1 Owen Genat (retired) 2014-07-22 10:40:30 UTC
Interesting issue. My reading of ODF v1.2, Part 1, 19.615 supports the view that the table:default-cell-style-name attribute should apply to the row it is an attribute of, irrespective of subsequent row definitions.

Confirmed under MacOS 10.6.8 using v4.3.0.3 (x86) and GNU/Linux x86_64 using v4.2.5.2 and v4.4.0.0alpha+ (2014-07-09). Status set to NEW. Platform set to All/All.
Comment 2 QA Administrators 2015-12-20 16:14:44 UTC Comment hidden (obsolete)
Comment 3 Dorian 2015-12-23 15:43:00 UTC
Bug is still present in LibreOffice under MacOS X 10.10.5.
Comment 4 QA Administrators 2017-01-03 19:54:41 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2019-12-03 14:15:26 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2021-12-03 04:30:37 UTC Comment hidden (obsolete)
Comment 7 Regina Henschel 2021-12-07 17:51:49 UTC
The import of attribute table:default-cell-style-name as attribute of <table:table-row> is missing.
Tested in Version: (x64) / LibreOffice Community
Build ID: 4ac9032163cf55c160145373e7c41741c9c339ca
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 QA Administrators 2023-12-08 03:15:05 UTC Comment hidden (obsolete)
Comment 9 Dorian 2023-12-08 08:32:27 UTC
Bug is still present. Version tested:

Version: (AARCH64) / LibreOffice Community
Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1
CPU threads: 8; OS: Mac OS X 13.6.1; UI render: Skia/Metal; VCL: osx
Locale: en-US (en_CH.UTF-8); UI: en-US
Calc: threaded