Return first frame in FramesData
on OOB access (#4830)
This commit is contained in:
@@ -56,7 +56,7 @@ DiagonalCurveEditorSubGroup::DiagonalCurveEditorSubGroup (CurveEditorGroup* prt,
|
||||
|
||||
customCurve = Gtk::manage (new MyDiagonalCurve ());
|
||||
customCurve->setType (DCT_Spline);
|
||||
|
||||
|
||||
Gtk::Grid* customCurveBox= Gtk::manage (new Gtk::Grid ());
|
||||
customCurveBox->get_style_context()->add_class("curve-curvebox");
|
||||
customCurveBox->add(*customCurve);
|
||||
@@ -148,7 +148,7 @@ DiagonalCurveEditorSubGroup::DiagonalCurveEditorSubGroup (CurveEditorGroup* prt,
|
||||
|
||||
NURBSCurve = Gtk::manage (new MyDiagonalCurve ());
|
||||
NURBSCurve->setType (DCT_NURBS);
|
||||
|
||||
|
||||
Gtk::Grid* NURBSCurveBox= Gtk::manage (new Gtk::Grid ());
|
||||
NURBSCurveBox->get_style_context()->add_class("curve-curvebox");
|
||||
NURBSCurveBox->add(*NURBSCurve);
|
||||
@@ -240,7 +240,7 @@ DiagonalCurveEditorSubGroup::DiagonalCurveEditorSubGroup (CurveEditorGroup* prt,
|
||||
|
||||
paramCurve = Gtk::manage (new MyDiagonalCurve ());
|
||||
paramCurve->setType (DCT_Parametric);
|
||||
|
||||
|
||||
Gtk::Grid* paramCurveBox= Gtk::manage (new Gtk::Grid ());
|
||||
paramCurveBox->get_style_context()->add_class("curve-curvebox");
|
||||
paramCurveBox->add(*paramCurve);
|
||||
@@ -669,9 +669,7 @@ void DiagonalCurveEditorSubGroup::switchGUI()
|
||||
} else {
|
||||
// dCurve ave a ColorProvider or a background gradient defined, so we create/update the object
|
||||
if (!leftBar) {
|
||||
leftBar = new ColoredBar(RTO_Bottom2Top);
|
||||
|
||||
|
||||
leftBar = new ColoredBar(RTO_Bottom2Top);
|
||||
}
|
||||
|
||||
if (barColorProvider) {
|
||||
@@ -1197,7 +1195,7 @@ bool DiagonalCurveEditorSubGroup::curveReset(CurveEditor *ce)
|
||||
customCurve->reset (dce->customResetCurve, dce->getIdentityValue());
|
||||
return true;
|
||||
|
||||
case (DCT_CatumullRom) :
|
||||
case (DCT_CatumullRom) :
|
||||
customCurve->reset (dce->catmullRomResetCurve, dce->getIdentityValue());
|
||||
return true;
|
||||
|
||||
|
Reference in New Issue
Block a user