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

George Staikos staikos at kde.org
Wed Aug 2 10:26:55 CEST 2006


SVN commit 568773 by staikos:

fix crash with broken sessions


 M  +1 -1      kst2dplot.cpp  


--- trunk/extragear/graphics/kst/src/libkstapp/kst2dplot.cpp #568772:568773
@@ -3532,7 +3532,7 @@
     submenu->insertItem(i18n("Type: Name", "Plot Object: %1").arg(tag), i);
     submenu->connectItem(i, this, SLOT(editCurve(int)));
     KstVCurvePtr vc = kst_cast<KstVCurve>(c);
-    if (vc) {
+    if (vc && vc->yVector()) {
       KstObjectPtr provider = vc->yVector()->provider();
       if (provider) {
         KstDataObjectPtr dop = kst_cast<KstDataObject>(provider);


More information about the Kst mailing list