Bug 106697

Summary: FORMATTING: TOC tab charstyle applied also to the next character
Product: LibreOffice Reporter: mini-matze
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: ilmari.lauhakangas, libretraining.tutorials
Priority: medium    
Version: 5.3.1.2 release   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: Testdocument with TOC and style for tab

Description mini-matze 2017-03-22 12:56:56 UTC
Description:
If you create a toc and set a style for the tab before the pagenumber (the field '#'), then the pagenumber has this style also.

It seems, that the size of the "string" is increment by one for the calculation of the styles to be set.
If this is also a duplicate, I'm realy sorry. This time I searched with differnet wordings... I hope that helped.

Steps to Reproduce:
1. Create one heading 1
2. Create toc and set a style for the tab before the pagenumber (e.g. betont (ger))

Actual Results:  
Now the pagenumber is also bold

Expected Results:
The pagenumber should have not the tab style.


Reproducible: Always

User Profile Reset: No

Additional Info:
If you set also a style for the pagenumber, then it works. The tab style only applies to the next char if the default should be used (but explicit selection of stylename "default" for the pagenumber does not work, too).

If you type an textentry after the tab (like "O"), then it also works like expected. The char "O" has the default style.


User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0
Comment 1 mini-matze 2017-03-22 12:57:55 UTC
Created attachment 132070 [details]
Testdocument with TOC and style for tab
Comment 2 Buovjaga 2017-03-29 10:27:28 UTC

*** This bug has been marked as a duplicate of bug 38531 ***