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

Adam Treat treat at kde.org
Mon Oct 9 18:31:50 CEST 2006


SVN commit 593948 by treat:

* An equation can refer to an object more than once.
Don't throw an error for [C_PI] * [C_PI]



 M  +1 -1      enodes.cpp  


--- trunk/extragear/graphics/kst/src/libkstmath/enodes.cpp #593947:593948
@@ -867,7 +867,7 @@
     v.insert(_tagName, _vector);
   } else if (_scalar && !s.contains(_tagName)) {
     s.insert(_tagName, _scalar);
-  } else {
+  } else if (!_scalar && !_vector) {
     KstDebug::self()->log(i18n("Equation has unknown object [%1].").arg(_tagName), KstDebug::Error);
     return false;
   }


More information about the Kst mailing list