Bug 90221 - ODT autostyles: Formatting not saving after "clear direct formatting"
Summary: ODT autostyles: Formatting not saving after "clear direct formatting"
Status: RESOLVED DUPLICATE of bug 73483
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Clear-Formatting Formatting-Text-Diverse
  Show dependency treegraph
 
Reported: 2015-03-25 08:13 UTC by tomaskeb
Modified: 2023-11-03 09:04 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments
formatting.odt: select all, make red font color, clear direct attributes, make red again and save. (13.46 KB, application/vnd.oasis.opendocument.text)
2015-03-25 08:13 UTC, tomaskeb
Details
One paragraph per style. Currently bugged. (13.64 KB, application/vnd.oasis.opendocument.text)
2020-07-21 15:52 UTC, Octavio Alvarez
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tomaskeb 2015-03-25 08:13:32 UTC
Created attachment 114326 [details]
formatting.odt: select all, make red font color, clear direct attributes, make red again and save.

1) Open a new document, insert some "Heading 1" and some "Body Text" under it.
2) Select it all and color it red.
3) Clear direct formatting.
4) Color it red again and save the document.
5) After reopening the document, the "Heading 1" lacks the red color.
Comment 1 A (Andy) 2015-03-25 22:13:58 UTC
Reproducible with LO 4.4.1.2, Win 8.1
Comment 2 Matthew Francis 2015-04-07 01:36:37 UTC
Occurs all the way back to OOo / LO 3.3.0

-> Version: Inherited from OOo
Comment 3 tommy27 2016-04-16 07:27:07 UTC Comment hidden (obsolete)
Comment 4 tomaskeb 2016-04-17 10:17:43 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2018-09-19 02:51:57 UTC Comment hidden (obsolete)
Comment 6 Octavio Alvarez 2018-09-19 02:57:17 UTC Comment hidden (obsolete)
Comment 7 tomaskeb 2018-12-25 08:42:19 UTC
Still in 6.2.0.1.
Comment 8 Timur 2018-12-25 16:31:25 UTC
After 2):
<text:h text:style-name="P3" text:outline-level="1">h1</text:h>
<text:p text:style-name="P2">tb1</text:p>

<style:style style:name="P3" style:family="paragraph" style:parent-style-name="Heading_20_1">
<style:text-properties fo:color="#c9211e"/>

<style:style style:name="P2" style:family="paragraph" style:parent-style-name="Text_20_body">
<style:text-properties fo:color="#c9211e" officeooo:rsid="0002cb8e" officeooo:paragraph-rsid="0002cb8e"/>

After 3):
<text:h text:style-name="Heading_20_1" text:outline-level="1">h1</text:h>
<text:p text:style-name="Text_20_body">tb1</text:p>

After 4):
<text:h text:outline-level="1">h1</text:h>
<text:p text:style-name="P1">tb1</text:p>

<style:style style:name="P1" style:family="paragraph" style:parent-style-name="Text_20_body">
<style:text-properties fo:color="#c9211e"/>
Comment 9 Timur 2018-12-27 11:17:22 UTC
Justin, since you're already on Bug 47471, can you please check whether this is a duplicate?
Comment 10 Justin L 2018-12-27 11:48:42 UTC
No, it is not a duplicate, but highly related.
0.) round-trip file. Paragraph 1 saved with style Heading 1
1.) apply red color and save: Paragraph 1 saved with autostyle P2.
2.) clear direct formatting and save. Paragraph 1 saved with style Heading 1.
3.) re-apply red color and save: Paragraph 1 has an empty autostyle. In fact, I'm kinda surprised that the Heading 1 style isn't lost altogether and that it didn't revert to default style.

It seems like this is a missing notification / missing cache flush scenario? Probably a fix for this would also fix bug 47471.
Comment 11 Justin L 2018-12-27 12:03:51 UTC
I should also have mentioned, if you hit <enter> after Heading 1 in the text, that is enough to "re-generate" the new P# autostyle.
Comment 12 Timur 2019-09-02 08:23:28 UTC Comment hidden (obsolete)
Comment 13 Justin L 2020-07-20 19:23:47 UTC
repro 7.1+
Comment 14 Justin L 2020-07-20 19:29:19 UTC
@Michael, may I CC you on hard bugs that no one else will be able to solve?
Comment 15 Octavio Alvarez 2020-07-21 15:51:28 UTC
I just tested all paragraph style. Only "Heading 1" - "Heading 10" are affected. Plain "Heading" is not affected. I will attach the document I used to test.
Comment 16 Octavio Alvarez 2020-07-21 15:52:53 UTC
Created attachment 163372 [details]
One paragraph per style. Currently bugged.

This is the document I used so you can use it to test too. For each style, it has one paragraph which contains the name of the style, formatted with that style.
Comment 17 QA Administrators 2022-09-05 03:38:07 UTC Comment hidden (noise, obsolete)
Comment 18 Justin L 2023-05-13 14:27:29 UTC
repro 7.6+
Comment 19 Mike Kaganski 2023-05-30 16:19:57 UTC

*** This bug has been marked as a duplicate of bug 73483 ***
Comment 20 Fede 2023-11-02 21:08:13 UTC
(In reply to Mike Kaganski from comment #19)
> 
> *** This bug has been marked as a duplicate of bug 73483 ***

I don't know whether this is a duplicate or not, but 73483 is supposed to be solved from 7.5.5 on and Justin L reproduced this 90221 on a 7.6+ version.

It seems to be an evidence against this bug to be properly marked as RESOLVED.
Comment 21 Justin L 2023-11-02 21:15:34 UTC
(In reply to Fede from comment #20)
> Justin L reproduced this 90221 on a 7.6+ version.
I tested on May 15, and Mike's patch landed on May 30. Status is OK.
Comment 22 Fede 2023-11-03 09:04:55 UTC Comment hidden (no-value)