Bug 117959 - Font colors dropdown corrupted after upgrade to LO 5.4.7.2
Summary: Font colors dropdown corrupted after upgrade to LO 5.4.7.2
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.4.7.2 release
Hardware: All Windows (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-01 14:14 UTC by Martin Terry
Modified: 2018-06-02 09:02 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Sceen shots of color drop down lists (263.81 KB, application/vnd.oasis.opendocument.text)
2018-06-01 14:20 UTC, Martin Terry
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Terry 2018-06-01 14:14:12 UTC
Description:
When I open existing docs or spreadsheets and select any of the toolbar font options (font colour, background & highlight) the drop down is still defaulted to 'Standard'but area below is now white spaces have lost the individual colour squares. Looking down the drop down I noticed there is another entry for 'Standard' and when I select that the expect color squares appear 
Some other color sets like 'Libreoffice' and 'Tango' are also duplicated. Is there a way I can reset the drop down to eliminate the duplication?

Steps to Reproduce:
Following installation of LO version 5.4.7.2
1. Display document or spreadsheet
2. Select Font Color, Background Color or Highlight Color on toolbar
3. View drop down list in displayed box

Actual Results:  
The drop down list contained 18 options:
custom; crmyk; gallery; html; libreoffice; palette; scribus; standard; tango; web; breeze; chart-palettes; freecolor-hic; html; libreoffice; standard; tango; tonal plus 'Document colors' at the end
Note that some of the entries are duplicated, especially Standard
The first entry for Standard contains no colour options, the second entry has the expected set of colours

Expected Results:
The drop down list should be in alpha order with no duplicates (I assume)


Reproducible: Always


User Profile Reset: No



Additional Info:
How do I correct the displayed drop down list.
I can see a set of .soc files in Progam Files\LibreOffice5\share\palette
also another set in <User>\AppData\Roaming\LibreOffice\4\User\config
but it is not clear to me how this works in the construction of the drop down list


User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36
Comment 1 V Stuart Foote 2018-06-01 14:20:17 UTC
Test in Safe mode or delete user profile to rebuild with defaults. 

Any improvement?
Comment 2 Martin Terry 2018-06-01 14:20:27 UTC
Created attachment 142477 [details]
Sceen shots of color drop down lists
Comment 3 V Stuart Foote 2018-06-01 16:03:13 UTC
That looks to be profile corruption. The palettes are not held in ODF document, just the specific colors.

The listed cmyk, palette, gallery, web, and scribus fonts were all removed before the 5.3.0 release, so profile in use is at least from 5.2

Again, retest in Safe mode, or even purge current profile.

https://wiki.documentfoundation.org/UserProfile
Comment 4 Martin Terry 2018-06-01 19:00:26 UTC
Thank you for your rapid response.

Running in Safe Mode still showed the proble.

Resetting my profile by deleting the 'registrymodifications.xcu' file did not have any effect.

Howver, when I moved some of the redundant font files you mentioned in my<user>\config folder to a different location and ran LO in normal mode the drop down list of fonts looked better, without the duplicates and redundant ones. The sole 'standard' option now shows a full palette of colours rather than whilte space.

Could this be a problem with the upgrade? If some fonts were removed before 5.3.0 why were these files still in my config folder? Just a thought...

I am happy to mark this bug as fixed if you approve. 
Please advise
Many thanks
Comment 5 V Stuart Foote 2018-06-01 20:18:42 UTC
(In reply to V Stuart Foote from comment #3)
> 
> The listed cmyk, palette, gallery, web, and scribus fonts were all removed

Sorry, change that this is a color palette and not a font issue =)

s/cmyk, palette, gallery, web, and scribus fonts/cmyk, gallery, web and scribus palettes/ 

(In reply to Martin Terry from comment #4)
> ... 
> Resetting my profile by deleting the 'registrymodifications.xcu' file did
> not have any effect.
> 
> Howver, when I moved some of the redundant font files you mentioned in
> my<user>\config folder to a different location and ran LO in normal mode the
> drop down list of fonts looked better, without the duplicates and redundant
> ones. The sole 'standard' option now shows a full palette of colours rather
> than whilte space.

For a default ALLUSER installation LibreOffice palettes are found in the <installDir>/share/palette directory...

The file "extension" for color palettes is .soc, but some others are used by other components.

 .sob (zip containing .png, "bitmaps")
 .sod (XML, "dashes")
 .soe (XML, "line ends?")
 .sog (XML, "gradients")
 .soh (XML, "hatches")
 .sop (zip containing .png, "patterns")

Users can add their own .soc palettes into their own <user>\config folder and they will show in the UI for their own use. Or, they can add them to the share\palettes folder for general use on a shared computer.

Otherwise, the "custom" palette from the GUI is held as "UserColors" stanzas in the per user profile "registrymodifications.xcu"--both recently used colors and colors available from the custom palette are recorded to profile.

At the moment only the Area fill dialog will allow you to create the colors that will show as swatches in the "custom" palette. While the "recent" color bar swatches will cycle as a stack on use.

> 
> Could this be a problem with the upgrade? If some fonts were removed before
> 5.3.0 why were these files still in my config folder? Just a thought...
> 

Possibly. Suspect at some point you'd done a non-administrator install "Only for me", and then with the 5.4.7 install for "Anyone who uses this computer". So you'd had a bad profile for some time--just more noticeable with removal of some of the palettes (bug 104047, bug 113858).

Creating a new user profile (deleting renaming %APPDATA%\LibreOffice\User\4) should cleanly resolve this or similar issues.
Comment 6 Martin Terry 2018-06-02 09:02:18 UTC
Thanks for additional information.