Bug 106188

Summary: Unused colors not removed from document colors list (works now after save and reload)
Product: LibreOffice Reporter: Yousuf Philips (jay) (retired) <philipz85>
Component: LibreOfficeAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: minor CC: dgp-mail, heiko.tietze
Priority: low    
Version: 5.4.0.0.alpha0+   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 85184, 107380    

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.