Turn wavelet.Lmethod
into an integer (by @heckflosse, #4397)
This commit is contained in:
@@ -1096,7 +1096,7 @@ void Wavelet::read (const ProcParams* pp, const ParamsEdited* pedited)
|
||||
Dirmethod->set_active (3);
|
||||
}
|
||||
|
||||
int selectedLevel = atoi(pp->wavelet.Lmethod.data()) - 1;
|
||||
int selectedLevel = pp->wavelet.Lmethod - 1;
|
||||
Lmethod->set_active (selectedLevel == -1 ? 4 : selectedLevel);
|
||||
|
||||
ccshape->setCurve (pp->wavelet.ccwcurve);
|
||||
@@ -1735,9 +1735,7 @@ void Wavelet::write (ProcParams* pp, ParamsEdited* pedited)
|
||||
pp->wavelet.Dirmethod = "all";
|
||||
}
|
||||
|
||||
char lMethod[3]; // one additional char to avoid buffer overrun if someone increases number of levels > 9
|
||||
sprintf(lMethod, "%d", Lmethod->get_active_row_number() + 1);
|
||||
pp->wavelet.Lmethod = lMethod;
|
||||
pp->wavelet.Lmethod = Lmethod->get_active_row_number() + 1;
|
||||
}
|
||||
|
||||
void Wavelet::curveChanged (CurveEditor* ce)
|
||||
|
Reference in New Issue
Block a user