Summary: | Change data file bug causes inconsistent state | ||
---|---|---|---|
Product: | [Applications] kst | Reporter: | Nicolas Brisset <nicolas.brisset> |
Component: | general | Assignee: | kst |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 1.x | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Solaris | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Nicolas Brisset
2005-12-21 17:40:59 UTC
SVN commit 490490 by staikos: don't add a curve to a plot twice BUG:118807 M +1 -1 kstchangefiledialog_i.cpp --- trunk/extragear/graphics/kst/kst/kstchangefiledialog_i.cpp #490489:490490 @@ -257,7 +257,7 @@ for (Kst2DPlotList::Iterator plotIter = plots.begin(); plotIter != plots.end(); ++plotIter) { for (KstDataObjectDataObjectMap::ConstIterator iter = duplicatedMap.begin(); iter != duplicatedMap.end(); ++iter) { if (KstBaseCurvePtr curve = kst_cast<KstBaseCurve>(iter.data())) { - if ((*plotIter)->Curves.contains(kst_cast<KstBaseCurve>(iter.key()))) { + if (!(*plotIter)->Curves.contains(kst_cast<KstBaseCurve>(iter.key()))) { (*plotIter)->addCurve(curve); } } |