diff --git a/rtgui/curveeditor.cc b/rtgui/curveeditor.cc index cc9cace6d..c7136259f 100644 --- a/rtgui/curveeditor.cc +++ b/rtgui/curveeditor.cc @@ -152,7 +152,7 @@ void CurveEditor::updateBackgroundHistogram (LUTu & hist) { // Open up the curve if it has modifications and it's not already opened // Returns: is it non-linear? bool CurveEditor::openIfNonlinear() { - bool nonLinear = tempCurve[0] != subGroup->getValLinear(); + bool nonLinear = tempCurve.size() && (tempCurve[0] > subGroup->getValLinear()) && (tempCurve[0] < subGroup->getValUnchanged()); if (nonLinear && !curveType->get_active()) { // Will toggle the event doing the display @@ -160,4 +160,4 @@ bool CurveEditor::openIfNonlinear() { } return nonLinear; -} \ No newline at end of file +}