Bug 136711

Summary: Direct formatting is partly deleted when replacing paragraph style
Product: LibreOffice Reporter: Telesto <telesto>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: buzea.bogdan
Priority: medium    
Version: Inherited From OOo   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=146660
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 107833    
Attachments: Example file

Description Telesto 2020-09-13 10:05:03 UTC
Description:
Direct formatting is partly deleted when replacing paragraph style

Steps to Reproduce:
1. open the attached file
2. Select the partly yellow marked text
3. Sidebar -> Styles Deck -> Select a paragraph style -> Say text body

Actual Results:
Yellow marking disappears.. rest still present

Expected Results:
Yellow marking unaffected


Reproducible: Always


User Profile Reset: No



Additional Info:
Found in
7.1

and in 
4.4.7.2

and in
LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 1 Telesto 2020-09-13 10:05:16 UTC
Created attachment 165449 [details]
Example file
Comment 2 Usha 2020-10-14 15:12:26 UTC
I was able to reproduce with the steps provided.



Version: 7.0.2.2 (x64)
Build ID: 8349ace3c3162073abd90d81fd06dcfb6b36b994
CPU threads: 4; OS: Windows 10.0 Build 19041; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 3 QA Administrators 2022-10-16 03:47:01 UTC Comment hidden (obsolete)
Comment 4 BogdanB 2023-05-06 12:35:53 UTC
Comparing your highlight with a "normal" highlight of the text with Style Inspector, in the normal highlight we have a "Char Highlight of -1". In your case this attribute is not here.

I enter a new line after your text, select just a part of the text and apply highlight. Compare the attributes.