Merge from default. Hope I did it right...
This commit is contained in:
@@ -90,7 +90,7 @@ void FlatCurveEditorSubGroup::switchGUI() {
|
||||
|
||||
removeEditor();
|
||||
|
||||
FlatCurveEditor* dCurve = (FlatCurveEditor*)(parent->displayedCurve);
|
||||
FlatCurveEditor* dCurve = static_cast<FlatCurveEditor*>(parent->displayedCurve);
|
||||
|
||||
if (dCurve) {
|
||||
|
||||
@@ -201,13 +201,13 @@ void FlatCurveEditorSubGroup::restoreDisplayedHistogram() {
|
||||
}
|
||||
|
||||
void FlatCurveEditorSubGroup::storeCurveValues (CurveEditor* ce, const std::vector<double>& p) {
|
||||
if (p.size()) {
|
||||
FlatCurveType t = (FlatCurveType)p[0];
|
||||
if (!p.empty()) {
|
||||
FlatCurveType t = static_cast<FlatCurveType>(p[0]);
|
||||
for (int i=0; i<(int)p.size(); i++)
|
||||
|
||||
switch (t) {
|
||||
case (FCT_MinMaxCPoints):
|
||||
((FlatCurveEditor*)ce)->controlPointsCurveEd = p;
|
||||
static_cast<FlatCurveEditor*>(ce)->controlPointsCurveEd = p;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
Reference in New Issue
Block a user