BUGFIX (no GoogleCode issue): RT was crashing when clicking on an image that contains non linear curves right after opening the application.
This commit is contained in:
parent
26b23c453c
commit
ae3dd26dc6
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user