Bug 128464 - Line and Filling and drawing toolbar icons for line and fill show wrong color
Summary: Line and Filling and drawing toolbar icons for line and fill show wrong color
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
5.1.6.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-29 15:02 UTC by Gerhard Weydt
Modified: 2019-10-29 16:18 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Result of described test (15.89 KB, image/png)
2019-10-29 15:02 UTC, Gerhard Weydt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gerhard Weydt 2019-10-29 15:02:28 UTC
Created attachment 155397 [details]
Result of described test

The description deals with line color, but the same applies to fill color.
The description uses Draw, but the same happens with Impress and Calc; Writer works differently.

You can set the default line color using the line color icon dropdown when no drawing object is selected. the new color is then shown. If you afterwards set another line color for a line, then this new color is shown in the icon, but lines drawn afterwards still use the default color. The color shown should be the one used for new objects, not the color last used for some object, this is irrelevant.
This is the case for both the line color icons in the Line and Filling and the Drawing toolbars.

Steps to reproduce (using Line and Filling toolbar):
1. In a new drawing set the default line color to green; icon changes color to green
2. Draw a line, it is green
3. While the line is selected, change the line color to red; icon changes color to red
4. Draw a second line, it is again green; icon color is still red

Moreover, the line color icon in the Drawing toolbar is not synchronised. The attachment shows the result of the described proceeding.
The same happens if you use the Drawing toolbar icon.

After some other action, e. g. creating a textbox, the icon color in the Line and Filling toolbar (but not the Drawing toolbar) is reverted to the standard color blue. This does not happen for the fill color icon!
Comment 1 Gerhard Weydt 2019-10-29 16:18:58 UTC
I just realised that the color shown is the one used when clicking directly on the icon, not the standard color, which in fact can only be seen in the format dialog when called with no drawing object selected.