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

George Staikos staikos at kde.org
Wed Oct 11 23:59:43 CEST 2006


SVN commit 594648 by staikos:

don't crash on loading invalid plugins
BUG: 135440


 M  +6 -2      kstplugin.cpp  


--- trunk/extragear/graphics/kst/src/libkstmath/kstplugin.cpp #594647:594648
@@ -426,9 +426,13 @@
 
 QString KstPlugin::label(int precision) const {
   QString label;
-  
+ 
+  if (!plugin()) {
+    return label;
+  }
+
   label = i18n("%1: %2").arg(plugin()->data()._readableName).arg(tagName());
-  if ((outputVectors())["Parameters"]) {
+  if (outputVectors()["Parameters"]) {
     QString strParamName;
     QString strValue;
     int length = (outputVectors())["Parameters"]->length();


More information about the Kst mailing list