Bug 159117 - Table of Contents tab formatting can be edited but is not applied.
Summary: Table of Contents tab formatting can be edited but is not applied.
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevAdvice
Depends on:
Blocks: TableofContents-Indexes
  Show dependency treegraph
 
Reported: 2024-01-10 22:41 UTC by Paul D
Modified: 2024-01-25 16:07 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Corresponds to steps to duplicate problem. (41.25 KB, image/png)
2024-01-12 16:48 UTC, Paul D
Details
Step 7B (73.91 KB, image/png)
2024-01-12 16:50 UTC, Paul D
Details
Step 8 (63.47 KB, image/png)
2024-01-12 16:51 UTC, Paul D
Details
Step 11 (26.06 KB, image/png)
2024-01-12 16:51 UTC, Paul D
Details
Step 14 (65.67 KB, image/png)
2024-01-12 16:51 UTC, Paul D
Details
Step 15 (65.51 KB, image/png)
2024-01-12 16:52 UTC, Paul D
Details
Step 16 (72.11 KB, image/png)
2024-01-12 16:52 UTC, Paul D
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul D 2024-01-10 22:41:42 UTC
Description:
When formatting a table of contents, the 

Steps to Reproduce:
1. Start a new Text document in Writer
2. Enter two lines of text.

Line 1
Line 2

3. Press F11 to show the Styles on the right.
4. Press Ctrl+A to select both lines.  While they are selected, double-click the  type Heading 1 which is under Heading.  Both lines will become larger and bold.
5. Go to the top of the document (Ctrl+Home).
6. Select from the menu: Insert > Table of Contents and Index > Table of Contents, Index, or Bibliography...
7. Select OK taking the default of all controls.

Notice the table of contents (TOC) has both lines because they are of style 'Heading 1' 

8. Click on the "Line 1" line in the TOC (not the one below).  This line has periods going out to the page number on the right.

Notice the Style in the right side becomes "Contents 1".  This is the style of that line.

9. Right-click in the Styles box (on the right) on "Contents 1" and select "Modify..." to modify this style.
10. On the Paragraph Style dialog, select the "Tabs" tab.

The bug is that anything changed on this tab does not apply the way it should.  Watch...

11. Change the fill character to None.  Click OK.

Notice the TOC has not changed.

12. Right-click the TOC and select "Update Index".

Still no change to the TOC.

13. However, right-click the TOC and select "Edit Index" and UNCHECK "Protect against manual changes", then click OK.

14. Now put the cursor on "Line 1" in the TOC.  Note that the style is "Contents 1".

15. Double-Click the "Contents 1" style in the list of styles on the right.  This applies that style-- even though it is supposed to be the currently applied style.

NOTICE the fill character becomes NONE as it should be because that is how the style is defined.

16. Right-click the TOC and select "Update Index".

NOTICE the fill character has come back-- that's a bug.  The same thing happens with the tabs set in the paragraph style.  It somehow reverts back to some other style even though it says the style in the ribbon below the menu.




Actual Results:
See steps above.

Expected Results:
See steps above.


Reproducible: Always


User Profile Reset: No

Additional Info:
[Information automatically included from LibreOffice]
Locale: en-US
Module: TextDocument
[Information guessed from browser]
OS: Windows (All)
OS is 64bit: yes

Version: 7.5.9.2 (X86_64) / LibreOffice Community
Build ID: cdeefe45c17511d326101eed8008ac4092f278a9
CPU threads: 8; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 1 bnghiem18LO 2024-01-12 01:05:57 UTC
Thank you for reporting the bug. I can't seem to reproduce the bug, so could you provide more clarification of the TOC settings in step 7 through an attached screenshot? I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested information is provided.
Comment 2 Paul D 2024-01-12 16:48:47 UTC
Created attachment 191892 [details]
Corresponds to steps to duplicate problem.
Comment 3 Paul D 2024-01-12 16:50:07 UTC
I ran though the steps I wrote just to make sure I didn't miss something.  

After step 3 it should say to click back in the document before pressing Ctrl+A.

Step 4 should say to double click in the Styles pane on the right on the "Heading 1" style (which is under the "Heading" style.

I started from a new document and took some screen shots along the way-- all attached and with the step number in the image name.

I hope this helps.  If you still need more or cannot duplicate it, I am availble to help-- and I am a veteran software engineer.

Thank you,
Paul Danko
Comment 4 Paul D 2024-01-12 16:50:43 UTC
Created attachment 191893 [details]
Step 7B
Comment 5 Paul D 2024-01-12 16:51:04 UTC
Created attachment 191894 [details]
Step 8
Comment 6 Paul D 2024-01-12 16:51:22 UTC
Created attachment 191895 [details]
Step 11
Comment 7 Paul D 2024-01-12 16:51:38 UTC
Created attachment 191896 [details]
Step 14
Comment 8 Paul D 2024-01-12 16:52:09 UTC
Created attachment 191897 [details]
Step 15
Comment 9 Paul D 2024-01-12 16:52:29 UTC
Created attachment 191898 [details]
Step 16
Comment 10 Buovjaga 2024-01-24 15:21:10 UTC
(In reply to Paul D from comment #0)
> 13. However, right-click the TOC and select "Edit Index" and UNCHECK
> "Protect against manual changes", then click OK.
> 
> 14. Now put the cursor on "Line 1" in the TOC.  Note that the style is
> "Contents 1".
> 
> 15. Double-Click the "Contents 1" style in the list of styles on the right. 
> This applies that style-- even though it is supposed to be the currently
> applied style.
> 
> NOTICE the fill character becomes NONE as it should be because that is how
> the style is defined.
> 
> 16. Right-click the TOC and select "Update Index".
> 
> NOTICE the fill character has come back-- that's a bug.  The same thing
> happens with the tabs set in the paragraph style.  It somehow reverts back
> to some other style even though it says the style in the ribbon below the
> menu.

Yes, that seems confusing. I reproduce already with 3.5.0 on Linux. I'm not sure which behaviour would be considered the bug: that the style is applied or that it is reverted with the update. There is discussion about style changes not taking effect in bug 134738.
Comment 11 Paul D 2024-01-25 16:07:45 UTC
The reported behavior would be a bug because I want to change the format of the TOC and am unable to.  On a particular level (the first level), I don't want leading periods out to the number.  But I do on the lower levels.  This currently cannot be done.  I should be able to do it by changing the style template that level one is based on.  The means is there so I do change it but it then does not take effect.  What is telling level 1 to keep using the leading periods when I took that out of the style that it is suppose to be using?