[Kst] extragear/graphics/kst/src/libkstmath
Eli Fidler
eli at staikos.net
Tue Feb 6 01:39:02 CET 2007
SVN commit 630694 by fidler:
don't set the tag if it's the same
M +7 -1 kstequation.cpp
--- trunk/extragear/graphics/kst/src/libkstmath/kstequation.cpp #630693:630694
@@ -332,7 +332,13 @@
void KstEquation::setTagName(const QString &in_tag) {
- KstObject::setTagName(KstObjectTag(in_tag, tag().context())); // FIXME: always the same context?
+ KstObjectTag newTag(in_tag, tag().context()); // FIXME: always the same context?
+
+ if (newTag == tag()) {
+ return;
+ }
+
+ KstObject::setTagName(newTag);
(*_xOutVector)->setTagName(KstObjectTag("xsv", tag()));
(*_yOutVector)->setTagName(KstObjectTag("sv", tag()));
}
More information about the Kst
mailing list