[Kst] extragear/graphics/kst/kst

George Staikos staikos at kde.org
Wed May 25 03:06:27 CEST 2005


SVN commit 417944 by staikos:

Search once.


 M  +4 -4      kstplugin.cpp  


--- trunk/extragear/graphics/kst/kst/kstplugin.cpp #417943:417944
@@ -593,10 +593,10 @@
   _curveHints->clear();
   if (_plugin) {
     for (QValueList<Plugin::Data::CurveHint>::ConstIterator i = _plugin->data()._hints.begin(); i != _plugin->data()._hints.end(); ++i) {
-      if (_outputVectors.contains((*i).x) && _outputVectors.contains((*i).y)) {
-        _curveHints->append(new KstCurveHint((*i).name, 
-                            _outputVectors[(*i).x]->tagName(),
-                            _outputVectors[(*i).y]->tagName()));
+      KstVectorPtr xv = _outputVectors[(*i).x];
+      KstVectorPtr yv = _outputVectors[(*i).y];
+      if (xv && yv) {
+        _curveHints->append(new KstCurveHint((*i).name, xv->tagName(), yv->tagName()));
       }
     }
   }


More information about the Kst mailing list