Bug 148449 - Text style is locked into one definition that no editing can change
Summary: Text style is locked into one definition that no editing can change
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.8.1 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Styles
  Show dependency treegraph
 
Reported: 2022-04-07 15:15 UTC by Rory Fellowes
Modified: 2024-04-18 03:16 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
This is a sample, taking a few paragraphs of my book and adding text set first t o Title and then to proWrite1.5. In both cases, much to my surprise since I never use Title, the bug persists. (17.45 KB, application/vnd.oasis.opendocument.text)
2024-04-17 15:44 UTC, Rory Fellowes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rory Fellowes 2022-04-07 15:15:03 UTC
Description:
FORMATTING: I have created a text style, but when I try to edit it it always reverts to the original version. I even tried to create a new style but that too remained the same, as if only one version of a style created by me is possible.

The original is Adobe Garamond Pro, Italic, Dark Red. I want it to be Adobe Garamond Pro, Regular, Automatic (Black). I have attempted this edit several times to no effect.

Steps to Reproduce:
1. Select my Style proWrite1.5
2. Type text. It comes out as italic in dark red.
3. Workaround - select text, cancel italic and change colour to Automatic.

Actual Results:
Create a style and then try to edit it.

Expected Results:
The style remains unchanged from the original.


Reproducible: Always


User Profile Reset: No



Additional Info:
It should edit the style. This is a simple process with Microsoft Word and it should be simple for LibreOffice, don't you think?

LibreOffice Help does not offer the option Restart In Safe Mode, so I cannot reset my profile.

Version: 7.1.8.1 (x64) / LibreOffice Community
Build ID: e1f30c802c3269a1d052614453f260e49458c82c
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: en-GB (en_IE); UI: en-GB
Calc: threaded
Comment 1 Stéphane Guillou (stragu) 2022-04-14 14:37:09 UTC
Hi Rory
Thank you for the report.

Can you please attach the document for us to test the issue?

For resetting your user profile, please go to: "Help > Restart in safe mode > Continue in safe mode", and see if the issue remains.

As LibreOffice 7.1 will not be updated anymore, it would be great if you could test a newer version, like 7.2: https://www.libreoffice.org/download/download/
Comment 2 Stéphane Guillou (stragu) 2022-04-15 22:47:43 UTC
I have tested with the document supplied by Rory via private email and can confirm that clearing the direct formatting of a specific paragraph (or modifying the style) does not restore the font style or the font colour set up in the style. For the paragraph in question, the font colour and the italics are "sticky": they can only be changed by using the formatting toolbar.

Waiting for Rory to agree to share the document here for others to test.

Version: 7.2.6.2 / LibreOffice Community
Build ID: b0ec3a565991f7569a5a7f5d24fed7f52653d754
CPU threads: 8; OS: Linux 5.13; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 3 QA Administrators 2024-04-16 03:16:14 UTC Comment hidden (obsolete)
Comment 4 Rory Fellowes 2024-04-17 15:44:29 UTC
Created attachment 193729 [details]
This is a sample, taking a few paragraphs of my book and adding text set first t o Title and then to proWrite1.5. In both cases, much to my surprise since I never use Title, the bug persists.

I hope you can solve this, if not for me (I'm used to it), for others who create their own styles. Thank you.
Comment 5 Stéphane Guillou (stragu) 2024-04-18 03:16:17 UTC
(I just reset the Assignee field: please only put your email address in there if you plan to submit a patch to fix the issue.)

(In reply to Rory Fellowes from comment #4)
> Created attachment 193729 [details]
Thanks for that document.
Looks like the issue is that you have a Character Style with that red colour, called "proWriter1.5_Nitejars. Every time you add a new paragraph, the caracter style persists, and if you remove the direct formatting (which has the black text colour), it will show the underlying character style's red colour.
Set your text back to "No character style" and you should be good.

You can always use the "Style Inspector" sidebar deck to inspect your text's paragraph/character styles and direct formatting.

Closing as "not a bug".