Bug 106697 - FORMATTING: TOC tab charstyle applied also to the next character
Summary: FORMATTING: TOC tab charstyle applied also to the next character
Status: RESOLVED DUPLICATE of bug 38531
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.3.1.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-22 12:56 UTC by mini-matze
Modified: 2017-03-29 10:27 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Testdocument with TOC and style for tab (9.99 KB, application/vnd.oasis.opendocument.text)
2017-03-22 12:57 UTC, mini-matze
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***