fix: null pointer access on curve edit
This commit is contained in:
committed by
Raphael Coeffic
parent
f229750e61
commit
15dcd2655d
@@ -108,8 +108,10 @@ class CurveEditWindow : public Page
|
||||
}
|
||||
SET_DIRTY();
|
||||
curveEdit->updatePreview();
|
||||
curveDataEdit->clear();
|
||||
curveDataEdit->update();
|
||||
if (curveDataEdit) {
|
||||
curveDataEdit->clear();
|
||||
curveDataEdit->update();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -132,8 +134,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