[Kst] kdeextragear-2/kst/kst
Andrew Walker
arwalker at sumusltd.com
Mon May 10 23:18:35 CEST 2004
CVS commit by arwalker:
Prevent a crash by ensuring that we are not trying to write to plot.end(); which is not a valid plot.
M +2 -6 datawizard.ui.h 1.22
--- kdeextragear-2/kst/kst/datawizard.ui.h #1.21:1.22
@@ -412,8 +412,6 @@ void DataWizard::finished()
KST::dataObjectList.append(KstDataObjectPtr(c));
static_cast<Kst2DPlot*>((*pit).data())->addCurve(c);
- if (pit == plots.end()) {
+ if (++pit == plots.end()) {
pit = plots.begin();
- } else {
- ++pit;
}
}
@@ -444,8 +442,6 @@ void DataWizard::finished()
KST::dataObjectList.append(KstDataObjectPtr(c));
static_cast<Kst2DPlot*>((*pit).data())->addCurve(c);
- if (pit == plots.end()) {
+ if (++pit == plots.end()) {
pit = plots.begin();
- } else {
- ++pit;
}
}
More information about the Kst
mailing list