Bug 149517 - TOC: Border and Padding from Character Style are lost when Paragraph assigned to TOC/index
Summary: TOC: Border and Padding from Character Style are lost when Paragraph assigned...
Status: RESOLVED DUPLICATE of bug 99330
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-10 16:03 UTC by phv
Modified: 2023-01-27 10:34 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Left border from character style lost (before/after the paragraph was assigned in TOC) (103.75 KB, image/png)
2022-06-10 16:03 UTC, phv
Details
Test document (11.39 KB, application/vnd.oasis.opendocument.text)
2022-06-10 16:05 UTC, phv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description phv 2022-06-10 16:03:05 UTC
Created attachment 180667 [details]
Left border from character style lost (before/after the paragraph was assigned in TOC)

Description:
Border and Padding from character style are modified when the paragraph is assigned to a table of content or index.

Steps to Reproduce:
1. Create a character style with border and padding.
2. Create a paragraph style without border or padding.
3. Write a title and apply the new styles.
4. Both the border and the padding from the character style are displayed.
5. Create a table of content and assign the new paragraph style as additionnal style.

Actual Result:
The title loses both the left border and padding.

Expected Result:
The title should display the character style as expected without modification.

Reproducible: Always

User Profile Reset: Yes

Additional Info:
It is not acceptable to adjust the character style in such a way when a paragraph is assigned in an index or table of contents. Tested in LibreOffice 7.3 and LibreOfficeDev 7.4 but I think this bug is very old (maybe inherited from OOo), though I couldn't find any trace of a bug report; so I didn't specify a version. Thank you.
Comment 1 phv 2022-06-10 16:05:51 UTC
Created attachment 180668 [details]
Test document
Comment 2 phv 2022-06-19 15:40:18 UTC
Added bug #147846 because whether it is a bookmark or an index/table of content reference, the mechanism is the same and leads to the same result: the character style is modified and should not be.
Comment 3 sdc.blanco 2022-06-20 11:16:10 UTC
@phv Have just marked bug 147846 as DUP of bug 99330. Your choice about whether to also mark this one as DUP of bug 99330 or wait for confirmation and add a "see also".
Comment 4 ajlittoz 2022-08-20 13:12:32 UTC
I confirm the bug with 7.3.4.2.

Left edge and left padding are suppressed.
Comment 5 Buovjaga 2023-01-27 10:34:05 UTC
No reply, so let's close as dupe

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