Bug 167024 - Inserting a nested table with table style will apply the style to the outer table aswell
Summary: Inserting a nested table with table style will apply the style to the outer t...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.1.0.3 release
Hardware: All All
: lowest normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Tables-Nested
  Show dependency treegraph
 
Reported: 2025-06-15 10:38 UTC by Telesto
Modified: 2025-12-30 21:11 UTC (History)
4 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 Telesto 2025-06-15 10:38:36 UTC
Description:
Inserting a nested table with table style will apply the style to the outer table aswell

Steps to Reproduce:
1. Open Writer
2. Insert a table with the table picker in the toolbar
3. Expand the table picker again -> Click more options
4. Pick some style and press OK

Actual Results:
Table style applied to inner and outer table

Expected Results:
Table style only applied to inner table


Reproducible: Always


User Profile Reset: No

Additional Info:
Found in
Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 220ef19df9de6ee7a99173a514402a9e701748d1
CPU threads: 4; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL threaded

also in
Version: 6.1.6.3
Build ID: 5896ab1714085361c45cf540f76f60673dd96a72
CPU threads: 4; OS: Windows 10.0; UI render: default; 
Locale: nl-NL (nl_NL); Calc: CL

fine in
Versie: 6.0.4.1
Build ID: a63363f6506b8bdc5222481ce79ef33b2d13c741
CPU-threads: 4; Besturingssysteem: Windows 10.0; UI-render: standaard; 
Locale: nl-NL (nl_NL); Calc: CL
Comment 1 Dieter 2025-12-29 13:03:41 UTC
I confirm the behaviour, but I'm not sure for 100%, if a nested table should have different style than the outer table.

cc: Dessogn-Team
Comment 2 Heiko Tietze 2025-12-30 17:28:35 UTC
(In reply to Dieter from comment #1)
> I'm not sure for 100%, if a nested table should
> have different style than the outer table.
Me too. One might also expect the style to persist like when pasting unformatted text inside a paragraph. Do you have a clear use case, Telesto?
Comment 3 Telesto 2025-12-30 18:27:08 UTC
(In reply to Heiko Tietze from comment #2)
> (In reply to Dieter from comment #1)
> > I'm not sure for 100%, if a nested table should
> > have different style than the outer table.
> Me too. One might also expect the style to persist like when pasting
> unformatted text inside a paragraph. Do you have a clear use case, Telesto?

Lets modify the example a bit to make the problem more explicit. 

1. Open Writer
2. Table -> Insert Table
3. Pick Box List Blue
4. Table -> Insert Table
5. Pick Box List Red

I would expect table formatted blue boxed as outer table, with a red box List formatted table within.

Why is the current result wrong? The outer table being reformatted, when inserting a new table within. The dialog is about defining the formatting for the inserted table, not for formatting outside that scope (outer table)
Comment 4 Heiko Tietze 2025-12-30 21:11:14 UTC
(In reply to Telesto from comment #3)
> Lets modify the example a bit to make the problem more explicit. 

To be more precise: the toolbar command to insert a table applies some DF and subsequent TS formats are applied as expected. The same is true for Table > Insert Table + TS = None but not if the inner table has some TS - this also affects the outer table whether it has no TS or some other.

I would treat this as a bug (with very low importance) but not as UX issue.

Perhaps this is going to be resolved en passant for bug 105933. Otherwise Balasz did a lot of work around TS and might know a simple solution.