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
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.
Created attachment 191892 [details] Corresponds to steps to duplicate problem.
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
Created attachment 191893 [details] Step 7B
Created attachment 191894 [details] Step 8
Created attachment 191895 [details] Step 11
Created attachment 191896 [details] Step 14
Created attachment 191897 [details] Step 15
Created attachment 191898 [details] Step 16
(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.
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?