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

@@ -132,6 +132,10 @@ void LCurve::read (const ProcParams* pp, const ParamsEdited* pedited) {
ashape->setCurve (pp->labCurve.acurve);
bshape->setCurve (pp->labCurve.bcurve);
// Open up the first curve if selected
bool active = lshape->openIfNonlinear();
if (!active) ashape->openIfNonlinear();
if (!active) bshape->openIfNonlinear();
enableListener ();
}