https://bugs.kde.org/show_bug.cgi?id=386066

Boudewijn Rempt <b...@valdyas.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://commits.kde.org/kri |https://commits.kde.org/kri
                   |ta/a0d408f601d04e7e35e0d6fe |ta/a208d7d9c6fa060ff0bd0912
                   |8076da48661549bb            |8214daca80bf5637

--- Comment #2 from Boudewijn Rempt <b...@valdyas.org> ---
Git commit a208d7d9c6fa060ff0bd09128214daca80bf5637 by Boudewijn Rempt.
Committed on 09/11/2017 at 16:11.
Pushed by rempt into branch 'master'.

Update the color selector dialog on showing it

If the fg or bg color hasn't been set at least once, the color
selector dialog would use the dummy internal KoColor and its
colorspace, which is rgb16. Then, on changing the color using
the spinboxes, a the current colorspace would change if the
document wasn't rgb16; the spinbox would be deleted and Krita
would crash.

This change initializes the dialog to the correct colorspace on
showing it, and moves the deletion of the spinboxes to the event
queue, using deleteLater.
Related: bug 385864

M  +6    -0    libs/ui/dialogs/kis_dlg_internal_color_selector.cpp
M  +6    -0    libs/ui/dialogs/kis_dlg_internal_color_selector.h
M  +7    -4    libs/ui/widgets/KoDualColorButton.cpp
M  +31   -17   libs/ui/widgets/kis_spinbox_color_selector.cpp

https://commits.kde.org/krita/a208d7d9c6fa060ff0bd09128214daca80bf5637

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to