LibreCAD/LibreCAD

Layer with Custom color don't preselect "Custom Color" on Edit Layer Property

FHenry opened this issue · 1 comments

Expected behavior

Create a layer
Set a color as "Custom" with #a39c67 (for exemple)
Click on OK
Click on Edit layer property, the preselected color should be "Custom"

Observed behavior

Create a layer
Set a color as "Custom" with #a39c67 (for exemple)
Click on OK
Click on Edit layer property, the defaulted preselectd color is Light Gray instead of "Custom

Steps to reproduce or sample file

2024-02-11.13-37-36.mp4

Operating System and LibreCAD version info

Version: 2.2.0.2
Compiler: GNU GCC 9.4.0
Compiled on: Jul 29 2023
Qt Version: 5.12.9
Boost Version: 1.75.0
System: Ubuntu 22.04.3 LTS

AppImage version

yes, I can also confirm this issue. This is common behavior for the control that is used to pick the color (color combobox).

If custom color is set to color combobox, and if it is does not match one of last picked custom colors (amount of them is 3) - the combobox just displays wrong color.

Actually, we've committed a fix for this issue recently - yet so far it's in separate branch, and I hope it will be merged one day into master and become part of the release.

For cherry pick - this issue is address by the folowing (and couple of previous) commits:
370f457