Bug 376405

Summary: Saturation value in HSV adjustment isn't restored
Product: [Applications] krita Reporter: Alex <eneeen>
Component: Filter LayersAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: halla, nicholaslapointe8, rkspsm
Priority: NOR    
Version First Reported In: 3.1.2   
Target Milestone: ---   
Platform: Other   
OS: All   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Fix for incorrect restoration of saturation slider

Description Alex 2017-02-12 17:07:05 UTC
It is stored in filter layer but when layer parameters are edited again saturation is reset to 0.
Comment 1 Nicholas LaPointe 2017-02-15 10:43:29 UTC
Thanks for your report! I am able to reproduce the issue.
Comment 2 RKS 2017-04-12 21:24:22 UTC
Created attachment 104998 [details]
Fix for incorrect restoration of saturation slider

In the UI file (wdg_hsv_adjustment.ui), the minimum value for saturationSpinBox was not set, and hence was taken as default 0, and the minimum value for saturationSlider was set to 0.

I added them and now it seems to work fine.
Comment 3 Halla Rempt 2017-04-25 12:39:50 UTC
Thanks for the patch!
Comment 4 Halla Rempt 2017-04-25 12:39:51 UTC
Git commit 581b87f6469894f6c7ee1d2f19bbf34883b869be by Boudewijn Rempt.
Committed on 25/04/2017 at 12:38.
Pushed by rempt into branch 'master'.

This fixes loading a hsv adjustment from a filter layer and editing
them.

M  +5    -2    plugins/filters/colorsfilters/wdg_hsv_adjustment.ui

https://commits.kde.org/krita/581b87f6469894f6c7ee1d2f19bbf34883b869be
Comment 5 Halla Rempt 2017-06-16 19:58:25 UTC
Can still be reproduced.
Comment 6 Alex 2018-01-04 23:34:26 UTC
I've checked current 4.0 alpha and it seems to work fine.
Comment 7 Halla Rempt 2018-01-05 08:56:05 UTC
Okay, closing.