[Kst] extragear/graphics/kst/src/libkst

Eli Fidler eli at staikos.net
Tue Feb 6 01:38:34 CET 2007


SVN commit 630693 by fidler:

don't set the tag if it's the same


 M  +4 -0      kstdatasource.cpp  
 M  +4 -0      kstobject.cpp  
 M  +4 -0      kstscalar.cpp  
 M  +4 -0      kststring.cpp  


--- trunk/extragear/graphics/kst/src/libkst/kstdatasource.cpp #630692:630693
@@ -453,6 +453,10 @@
 
 
 void KstDataSource::setTagName(const KstObjectTag& in_tag) {
+  if (in_tag == tag()) {
+    return;
+  }
+
   KstObject::setTagName(in_tag);
   _numFramesScalar->setTagName(KstObjectTag("frames", tag()));
   for (QDictIterator<KstString> it(_metaData); it.current(); ++it) {
--- trunk/extragear/graphics/kst/src/libkst/kstobject.cpp #630692:630693
@@ -76,6 +76,10 @@
 
 
 void KstObject::setTagName(const KstObjectTag& tag) {
+  if (tag == _tag) {
+    return;
+  }
+
   _tag = tag;
   setName(_tag.tagString().local8Bit().data());
 }
--- trunk/extragear/graphics/kst/src/libkst/kstscalar.cpp #630692:630693
@@ -188,6 +188,10 @@
 
 
 void KstScalar::setTagName(const KstObjectTag& newTag) {
+  if (newTag == tag()) {
+    return;
+  }
+
   KstWriteLocker l(&KST::scalarList.lock());
 
   KST::scalarList.doRename(this, newTag);
--- trunk/extragear/graphics/kst/src/libkst/kststring.cpp #630692:630693
@@ -72,6 +72,10 @@
 
 
 void KstString::setTagName(const KstObjectTag& tag) {
+  if (tag == this->tag()) {
+    return;
+  }
+
   KstWriteLocker l(&KST::stringList.lock());
 
   KST::stringList.doRename(this, tag);


More information about the Kst mailing list