Bug 143480 - Writer: In Navigator, promotion or demotion of a level should change heading level in document
Summary: Writer: In Navigator, promotion or demotion of a level should change heading ...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.2.0.1 rc
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-21 16:21 UTC by Paul
Modified: 2022-12-08 11:05 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
File with Navigator promotion problem (143.41 KB, application/vnd.oasis.opendocument.text)
2022-12-06 23:00 UTC, Paul
Details
_H4 para style (25.82 KB, image/png)
2022-12-08 10:38 UTC, Paul
Details
_H5 (26.05 KB, image/png)
2022-12-08 10:39 UTC, Paul
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul 2021-07-21 16:21:28 UTC
Description:
I'm trying to reorganize a long document. In Navigator, I move a heading section under another of equal heading level (4), and then demote its level (to 5). In Navigator it now shows as a sublevel to the previous heading, but in the document it retains its original heading level (4).

Steps to Reproduce:
1.In Navigator, move a heading to under another of equal Level.
2.Demote that heading one heading level
3.

Actual Results:
Heading now shows as sub-heading of previous heading, but in the document it retains the same heading level as the previous heading.

Expected Results:
I expect the heading to be demoted in level in the document as well as in Navigator.


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
Version: 7.2.0.1 / LibreOffice Community
Build ID: 32efc3b7f3a71cfa6a7fa3f6c208333df48656cc
CPU threads: 2; OS: Linux 5.10; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 1 Eleonora Govallo 2021-08-06 05:54:35 UTC
Could you please attach the example of document, i'm not sure, that understood the problem correctly.
For the moment no repro in Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: 1dd4a80fa076bedb3a82821517036bad8dd79857
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: ru-RU (ru_RU.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-07-26_22:41:19
Calc: threaded
Comment 2 Paul 2021-08-23 23:34:17 UTC
Seems to work correctly in smaller files, but in the larger file I was using it is buggy. Sorry, cannot upload the problem file.
Comment 3 QA Administrators 2021-08-24 03:48:35 UTC Comment hidden (obsolete)
Comment 4 Buovjaga 2022-05-19 12:07:44 UTC
(In reply to Paul from comment #2)
> Seems to work correctly in smaller files, but in the larger file I was using
> it is buggy. Sorry, cannot upload the problem file.

You could sanitize your larger file: https://wiki.documentfoundation.org/QA/Bugzilla/Sanitizing_Files_Before_Submission

Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the document.
Comment 5 QA Administrators 2022-11-16 03:47:06 UTC Comment hidden (obsolete)
Comment 6 Buovjaga 2022-11-16 07:42:40 UTC
Paul: you closed this as insufficientdata. Does this mean you have not been able to sanitize the document? If so, you can send it to me via email and I can give it a shot (confirming with you before attaching it to the report).
Comment 7 Dieter 2022-12-06 22:00:45 UTC
(In reply to Buovjaga from comment #6)
> Paul: you closed this as insufficientdata. Does this mean you have not been
> able to sanitize the document? If so, you can send it to me via email and I
> can give it a shot (confirming with you before attaching it to the report).

=> NEEDINFO
Comment 8 Paul 2022-12-06 22:43:13 UTC
(In reply to Dieter from comment #7)
> (In reply to Buovjaga from comment #6)
> > Paul: you closed this as insufficientdata. Does this mean you have not been
> > able to sanitize the document? If so, you can send it to me via email and I
> > can give it a shot (confirming with you before attaching it to the report).
> 
> => NEEDINFO

Thanks guys, I appreciate your attention greatly. 

I have made a screencast of the problem, using the actual problem file. In doing so, I have narrowed down the extent of the problem.

In Navigator, using the toolbar arrows to promote a heading up or demote it down works fine. However, using the toolbar arrows to promote left or demote right, while it works in that it affects a Table of Contents refresh, never is reflected in the LO toolbar Style combo box item. That is, if I take an H4 heading down to H5, it shows as H5 in a refreshed ToC, but stays as H4 in the toolbar box.

Here is the video: https://videy.co/v?id=H6Lde88p

I will try to sanitize the file.
Comment 9 Paul 2022-12-06 23:00:07 UTC
Created attachment 184024 [details]
File with Navigator promotion problem

Here is the sanitized file.
Comment 10 QA Administrators 2022-12-07 03:22:40 UTC Comment hidden (obsolete)
Comment 11 Dieter 2022-12-08 06:27:22 UTC
I can't confirm the problem with

Version: 7.4.3.2 (x64) / LibreOffice Community
Build ID: 1048a8393ae2eeec98dff31b5c133c5f1d08b890
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

Paul, since headings in navigator are defined by chapter numbering, please make sure, you have defined paragraph style _H5 to the sublevel and not _H4.

Could you please check it and give feedback? Please also make sure, you're using actual version of LO.
=> NEEDINFO
Comment 12 Paul 2022-12-08 10:38:38 UTC
Created attachment 184046 [details]
_H4 para style

Still on 7.4.3.2

Is this what you want? A pic of h4 and h5 if I can do two attachments.
Comment 13 Paul 2022-12-08 10:39:25 UTC
Created attachment 184047 [details]
_H5
Comment 14 Paul 2022-12-08 10:40:05 UTC
Still on 7.4.3.2. Here are the Outline tabs of _H4 and _H5.
Comment 15 Dieter 2022-12-08 10:48:30 UTC
(In reply to Paul from comment #12)
> Is this what you want? A pic of h4 and h5 if I can do two attachments.

No, it's not the paragraph style dialog, but chapter numbering dialog: Tools -> Chapter numbering. If I open attachment 184024 [details], default settings are used (Heading 1, Heading 2, ...). If you assign your heading styles to the different levels of chapter numbering, it should work. Does it? => NEEDINFO
Comment 16 Paul 2022-12-08 10:57:40 UTC
Dieter, that solves the problem. I was completely unaware of that function, and I still don't understand why the styles toolbar widget would need its support in order to recognize a change in para style. But in any case, I will make the appropriate changes to my template.

Perhaps this could be marked Resolved, though my comment above still presents an academic problem, to me at least. I will leave that decision to you guys.

Thanks much,
Paul
Comment 17 Dieter 2022-12-08 11:05:39 UTC
(In reply to Paul from comment #16)
> Dieter, that solves the problem.
=> RESOLVED NOTABUG

I rember some discussions here about relationship between outline and chapter numbering. I'm sure, improvement is possible, but it is clearly not a bug. For additional help I recommend Writer Guide: https://documentation.libreoffice.org/en/english-documentation/