fix nullptr access in curve edit
This commit is contained in:
committed by
Raphael Coeffic
parent
c13d2ed60d
commit
4af17b49c8
@@ -193,8 +193,10 @@ class CurveEditWindow : public Page
|
||||
}
|
||||
SET_DIRTY();
|
||||
curveEdit->updatePreview();
|
||||
curveDataEdit->clear();
|
||||
curveDataEdit->update();
|
||||
if(curveDataEdit) {
|
||||
curveDataEdit->clear();
|
||||
curveDataEdit->update();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -217,8 +219,10 @@ class CurveEditWindow : public Page
|
||||
curve.points = newValue;
|
||||
SET_DIRTY();
|
||||
curveEdit->updatePreview();
|
||||
curveDataEdit->clear();
|
||||
curveDataEdit->update();
|
||||
if(curveDataEdit) {
|
||||
curveDataEdit->clear();
|
||||
curveDataEdit->update();
|
||||
}
|
||||
}
|
||||
});
|
||||
edit->setSuffix(STR_PTS);
|
||||
|
||||
Reference in New Issue
Block a user