[Kst] branches/work/kst/portto4/kst/src/libkstmath

Barth Netterfield netterfield at astro.utoronto.ca
Fri Apr 13 21:21:15 UTC 2012


SVN commit 1289399 by netterfield:

BUG: 297526
Unary minus no longer prevents updating of equations.


 M  +2 -0      dataobject.cpp  
 M  +6 -0      enodes.cpp  
 M  +1 -0      enodes.h  


--- branches/work/kst/portto4/kst/src/libkstmath/dataobject.cpp #1289398:1289399
@@ -202,6 +202,8 @@
             tmpList.append(dataObjectPlugin);
             Debug::self()->log(QString("Plugin loaded: %1").arg(fileName));
           }
+        } else {
+          Debug::self()->log(QString("Plugin failed to load: %1").arg(fileName));
         }
     }
   }
--- branches/work/kst/portto4/kst/src/libkstmath/enodes.cpp #1289398:1289399
@@ -867,7 +867,13 @@
   return (v == v) ? -v : v;
 }
 
+bool Negation::collectObjects(Kst::VectorMap& v, Kst::ScalarMap& s, Kst::StringMap& t) {
+  bool ok = _n->collectObjects(v, s, t);
+  return ok;
+}
 
+
+
 bool Negation::isConst() {
   return _n->isConst();
 }
--- branches/work/kst/portto4/kst/src/libkstmath/enodes.h #1289398:1289399
@@ -228,6 +228,7 @@
       bool isConst();
       double value(Context*);
       QString text() const;
+      bool collectObjects(Kst::VectorMap& v, Kst::ScalarMap& s, Kst::StringMap& t);
 
     protected:
       Node *_n;


More information about the Kst mailing list