Bug 155520 - Table: Unexpected paragraph style when insert "Insert bellow" loses styles
Summary: Table: Unexpected paragraph style when insert "Insert bellow" loses styles
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.6.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Cell-Add-Delete
  Show dependency treegraph
 
Reported: 2023-05-26 22:33 UTC by Alexander Kurakin
Modified: 2023-06-08 07:00 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 Alexander Kurakin 2023-05-26 22:33:39 UTC
1. Open the Writer.
2. Create a 2-rows 2-columns table.

----

Scenario A.

3. Apply "Table Heading" (some) style to the 1st column.
4. Split the 2nd column of the 1st row into 2 rows.
5. Move to the latter of the created cells.
6. Click "Table" -> "Insert" -> "Row bellow".

Scenario B:

as such as Scenario A but pp. 3 and 4 are swapped.

Scenario C:

3. Apply "Table Heading" (some) style to the 1st column.
4. Split the 2nd column of the 1st row into 2 rows.
5. Move to the last column of the last cell.
6. Click "Table" -> "Insert" -> "Row above".

Scenario D:

as such as Scenario C but pp. 3 and 4 are swapped.

----

7. Check for the style of the new row's first cell.
8. Expected: "Table Heading".

9. Actual:
 - Scenario A: as Expected.
 - Scenario B: "Table Contents" (!!!).
 - Scenario C: as Expected.
 - Scenario D: as Expected.

----

(Side Note: There are no E and F Scenarios due to bug #155518.)

----

Version: 7.4.6.2 / LibreOffice Community
Build ID: 40(Build:2)
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Gentoo official package
Calc: threaded
Comment 1 Dieter 2023-06-08 07:00:29 UTC
I confirm it with

Version: 7.6.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 389a8d52d9961f89c0b2847b30ee1ca59a8fdc80
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL threaded

Smaller set of steps:
1. Open the Writer.
2. Create a 2-rows 2-columns table.
3. Split the 2nd column of the 1st row into 2 rows.
4. Apply paragraph style "Table Heading" to first column.
5. Move to the latter of the created cells.
6. Click "Table" -> "Insert" -> "Row bellow".

Actual result
New row has PS "Table Contents" in first column

Expected result
New row has PS "Table Heading" in first column (it works, if you swap step 3 and 4)