Review Request 120593: Krita: Fix popup docker color selection when picking grayscale

Scott Petrovic scottpetrovic at gmail.com
Wed Oct 15 18:54:24 BST 2014



> On Oct. 15, 2014, 5:14 p.m., Boudewijn Rempt wrote:
> > That sort of cleanup is always good. I wonder a bit, though, about the change from 50 to 100 in the timer -- was that intended? If so, it should be done in a different comment that explains the reason.

I think that was left over when I was figuring out what was causing the issue. I don't think that will affect the fix at all. I can remove that line when I push it out.


- Scott


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/120593/#review68488
-----------------------------------------------------------


On Oct. 15, 2014, 2:59 a.m., Scott Petrovic wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/120593/
> -----------------------------------------------------------
> 
> (Updated Oct. 15, 2014, 2:59 a.m.)
> 
> 
> Review request for Calligra.
> 
> 
> Repository: calligra
> 
> 
> Description
> -------
> 
> Currently the popup docker has a nasty bug that has really been bothering me when painting. When you open it up and select a color from the triangle, it doesn't behave correctly. If you try to select a color that has no saturation (greyscale), the triangle will rotate around to the hue red. The same thing will happen when selecting black/white. This happens a lot when selecting really dark colors or really light.
> 
> 
> Diffs
> -----
> 
>   krita/ui/kis_popup_palette.cpp ebebe82 
>   libs/widgets/KoTriangleColorSelector.cpp aede069 
> 
> Diff: https://git.reviewboard.kde.org/r/120593/diff/
> 
> 
> Testing
> -------
> 
> I am on Ubuntu 14.04, so I am not sure if the bug is present on other OSs. I tested it out for a while selecting all different colors. I tried releasing the mouse at different times. It seems to be working to me.
> 
> 
> The fix: There are a lot of get/set calls for each hue, saturation, and value call within the triangle color selector. Some of them were called directly, while others were called through their getter/setter methods. I think the different ways were stomping on each other. I made all calls use the getters/setters so they go through the proper data sanitization. Removed extra sanitization on outside steps.
> 
> 
> Thanks,
> 
> Scott Petrovic
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/calligra-devel/attachments/20141015/d0b1d63c/attachment.htm>


More information about the calligra-devel mailing list