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:
@@ -152,7 +152,7 @@ void CurveEditor::updateBackgroundHistogram (LUTu & hist) {
|
|||||||
// Open up the curve if it has modifications and it's not already opened
|
// Open up the curve if it has modifications and it's not already opened
|
||||||
// Returns: is it non-linear?
|
// Returns: is it non-linear?
|
||||||
bool CurveEditor::openIfNonlinear() {
|
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()) {
|
if (nonLinear && !curveType->get_active()) {
|
||||||
// Will toggle the event doing the display
|
// Will toggle the event doing the display
|
||||||
@@ -160,4 +160,4 @@ bool CurveEditor::openIfNonlinear() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return nonLinear;
|
return nonLinear;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user