Bug 150152

Summary: Table style reset and wrong styling when new row inserted
Product: LibreOffice Reporter: jan
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: rafael.palma.lima
Priority: medium    
Version: 7.2.7.2 release   
Hardware: x86-64 (AMD64)   
OS: Windows (All)   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 107553    
Attachments: Table before new row is added
Table after new row was added

Description jan 2022-07-26 12:48:26 UTC
Description:
If a new row is added to table which uses some predefined style with custom padding value, then padding is lost, new row has a wrong style and undo doesn't work properly.

Steps to Reproduce:
1. create a table with several lines
2. set table style via "Styly automatického formátu" (automatic format styles?)
3. select "Jednoduché řádky" (simple lines?)
4. change table cell padding via "Vlastnosti tabulky" (table properties?)
5. go to the last table row
6. press "Řadky pod" (rows under?) to add one more row

Actual Results:
Table losts padding settings and the new row has a wrong style (eg. background color). 

Expected Results:
New row is added withou any changes to table style. New row has a correct style (correct background). 


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.2.7.2 (x64) / LibreOffice Community
Build ID: 8d71d29d553c0f7dcbfa38fbfda25ee34cce99a2
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Vulkan; VCL: win
Locale: cs-CZ (cs_CZ); UI: cs-CZ
Calc: threaded
Comment 1 jan 2022-07-26 12:49:57 UTC
Created attachment 181419 [details]
Table before new row is added
Comment 2 jan 2022-07-26 12:50:26 UTC
Created attachment 181420 [details]
Table after new row was added
Comment 3 Rafael Lima 2022-07-26 14:08:15 UTC
Repro with

Version: 7.3.4.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Ubuntu package version: 1:7.3.4-0ubuntu0.22.04.1
Calc: threaded

Any direct formatting (DF) is lost after inserting a new row. Even if you format the text in the table, if you add a new row the formatting will be lost.

It seems the table style has precedence over DF and I'm not sure it is the expected behavior.
Comment 4 Rafael Lima 2022-07-26 14:13:26 UTC
Maybe a duplicate of bug 126008 ?
Comment 5 Timur 2022-09-05 08:02:22 UTC

*** This bug has been marked as a duplicate of bug 126008 ***