Auto-open curves on image reopen; see issue #724

This commit is contained in:
Oliver Duis
2011-06-07 19:21:02 +02:00
parent 46e433ed2f
commit 9d939bdf82
6 changed files with 28 additions and 0 deletions

View File

@@ -64,6 +64,11 @@ void HSVEqualizer::read (const ProcParams* pp, const ParamsEdited* pedited) {
sshape->setCurve (pp->hsvequalizer.scurve);
vshape->setCurve (pp->hsvequalizer.vcurve);
// Open up the first curve if selected
bool active = hshape->openIfNonlinear();
if (!active) sshape->openIfNonlinear();
if (!active) vshape->openIfNonlinear();
enableListener ();
}