[Kst] extragear/graphics/kst/kst

George Staikos staikos at kde.org
Thu Dec 22 06:24:45 CET 2005


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