[Kst] extragear/graphics/kst/kst
George Staikos
staikos at kde.org
Thu Dec 22 06:43:17 CET 2005
SVN commit 490491 by staikos:
last commit was somewhat incorrect. it's actually a second plot with the same
name, though it should also check for duplicates
M +1 -1 kstchangefiledialog_i.cpp
--- trunk/extragear/graphics/kst/kst/kstchangefiledialog_i.cpp #490490:490491
@@ -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)->Curves.contains(kst_cast<KstBaseCurve>(curve))) {
(*plotIter)->addCurve(curve);
}
}
More information about the Kst
mailing list