Bug 106188 - Unused colors not removed from document colors list (works now after save and reload)
Summary: Unused colors not removed from document colors list (works now after save and...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
5.4.0.0.alpha0+
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Color-Picker-Widget Document-Colors-Palette
  Show dependency treegraph
 
Reported: 2017-02-25 14:32 UTC by Yousuf Philips (jay) (retired)
Modified: 2022-12-16 07:34 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yousuf Philips (jay) (retired) 2017-02-25 14:32:53 UTC
Steps:
1) Open Writer
2) Type some text and set its color to Green
3) Open up the color widget and notice that Green is in the document colors palette
4) Press undo or set the selected text color back to automatic and see that Green wasnt removed from the document colors palette

Version: 5.4.0.0.alpha0+
Build ID: 36de6c50684c8241969a2064d30aff41e0bc5d97
CPU threads: 2; OS: Linux 3.19; UI render: default; VCL: gtk2; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2017-02-22_23:33:52
Locale: en-US (en_US.UTF-8); Calc: group
Comment 1 Heiko Tietze 2017-02-25 21:01:49 UTC
Confirming. The reverted color remains in the document colors even after reloading it. The property is stored in the document as <style:style style:name="T2" style:family="text"><style:text-properties fo:color="#ffff00"/></style:style>. But <text:span text:style-name="T2"> isn't used anymore in the document.

Likely the issue is true for all other properties as well. For the colors a solution could be to compare the list of styles against what is actually used.

Version: 5.3.0.3
Build ID: 5.3.0-2
CPU Threads: 8; OS Version: Linux 4.9; UI Render: default; VCL: kde4; Layout Engine: new; 
Locale: de-DE (en_US.UTF-8); Calc: group
Comment 2 QA Administrators 2019-03-23 03:17:29 UTC Comment hidden (obsolete)
Comment 3 Dieter 2019-03-23 05:31:15 UTC
Still present in

Version: 6.3.0.0.alpha0+ (x64)
Build ID: 91cdf22b88a4f7bec243c8fb187627e766d3294c
CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2019-03-08_00:38:10
Locale: en-US (de_DE); UI-Language: en-US
Calc: threaded
Comment 4 QA Administrators 2021-03-23 04:21:00 UTC Comment hidden (obsolete)
Comment 5 Dieter 2022-12-16 07:34:31 UTC
Little progress in 

Version: 7.5.0.0.beta1 (X86_64) / LibreOffice Community
Build ID: 3aca23eec42e9d6fbe57071d7633ae1fc4bc5fcc
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-US (de_DE); UI: en-GB
Calc: CL threaded

Colour is still present in the colour widget after redo or changing text to automatic, but after saving and reloading colour has been removed.