[Kst] [Bug 118807] Change data file bug causes inconsistent state
George Staikos
staikos at kde.org
Thu Dec 22 06:24:53 CET 2005
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=118807
staikos kde org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From staikos kde org 2005-12-22 06:24 -------
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);
}
}
More information about the Kst
mailing list