Bug 166560 - Number of columns incorrect when using .uno:FormatColumns (correct when using .uno:EditCurrentRegion > Options...)
Summary: Number of columns incorrect when using .uno:FormatColumns (correct when using...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.2.3.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Page-Layout-Columns
  Show dependency treegraph
 
Reported: 2025-05-13 07:12 UTC by HTK300
Modified: 2025-05-22 07:03 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
collection of columns in a writer document (41.86 KB, application/vnd.oasis.opendocument.text)
2025-05-13 07:40 UTC, HTK300
Details
Screencast (3.85 MB, image/gif)
2025-05-13 08:22 UTC, Heiko Tietze
Details
A screencast how to do the wanted layout currently (3.26 MB, image/gif)
2025-05-13 08:54 UTC, Mike Kaganski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description HTK300 2025-05-13 07:12:01 UTC
Description:
Writer does revert a paragraph to single column setup which has earlier been setup with more than a single columns

Steps to Reproduce:
1. prepare a Writer sheet
2. hit carriage return several times to create several lines in a document
3. prepare a number of line by marking them as highlighted
4. go to menu > Format > Columns and select 2 or more columns
5. you may write something into the paragraph that consists of several columns
6. try to select a few of those lines within that Columns
7. try to revert that lines from a multiple column setup into a single one column setup

Actual Results:
a paragraph with multiple column setup won't revert back to single column. In fact, a highlighted paragraph that had already been selected containing multiple columns appears to have only 1 column in the dialog window that appears, when trying to alter the column setup of that paragraph.

Expected Results:
changing paragraphs with columns should be able to revert to one column setup


Reproducible: Always


User Profile Reset: No

Additional Info:
when trying to modify a paragraph that consists of several columns, the dialog window that opens for alternating the column setup should indicate the correct number of columns within that highlighted area (paragraph)
Comment 1 HTK300 2025-05-13 07:40:04 UTC
Created attachment 200767 [details]
collection of columns in a writer document

test yourself to select a paragraph trying to revert them down to a single column paragraph.
Comment 2 Mike Kaganski 2025-05-13 07:42:48 UTC Comment hidden (spam)
Comment 3 Mike Kaganski 2025-05-13 08:13:33 UTC
Oh wait, what a nonsense I wrote! I did that by memory, and that is the worst thing I do from time to time. I must hit myself on the face every time I don't test before writing.

Our nested sections work differently. An inner section *actually split the outer one*. So - creating an inner section with two columns, and then changing it to a single column, could be a workaround.
Comment 4 Heiko Tietze 2025-05-13 08:22:15 UTC
Created attachment 200771 [details]
Screencast

I can easily change 2 columns into 1 and just remove the section afterwards.
Comment 5 Mike Kaganski 2025-05-13 08:54:04 UTC
Created attachment 200772 [details]
A screencast how to do the wanted layout currently

Heiko: this is what this issue is about. I did the layout that OP wanted; the problem here was, that when I selected part of the text inside the two-column section, and opened the columns tool, it showed "1 column"; and it was not possible to just click OK and have the new section. I start to think, that OP is right, and if the dialog opened with "2", then changing to 1 would just work, and not create any kind of a problem. I think it should be rare, that people open that dialog inside a 2-columnar layout, just to create the *same* 2-columnar layout without any modifications.
Comment 6 Heiko Tietze 2025-05-13 15:02:05 UTC
(In reply to Mike Kaganski from comment #5)
> the problem here was, that when I selected part of the text inside the
> two-column section, and opened the columns tool, it showed "1 column"...
Struggled myself in the screencast with the selection. Obviously you need to select all in the section, which is blocked by the inner part in your case.

Since UX was summoned: does it make sense to change the number of columns if the section has children? If not, why don't we disable the controls in this case.
Comment 7 Heiko Tietze 2025-05-22 07:03:54 UTC
We discussed the topic in the design meeting.

The confusion results from different paths with either Format > Column, which results in a wrong number of columns, or Edit Section > Columns... returning the correct number.

It's an ordinary bug.