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

Peter Kümmel syntheticpp at gmx.net
Wed Jan 5 16:37:28 CET 2011


SVN commit 1212042 by kuemmel:

fix crash because of missing x vector.

Bug 261260

 M  +4 -1      filterfitdialog.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/filterfitdialog.cpp #1212041:1212042
@@ -242,9 +242,12 @@
 
   if (plotItem) {
     CurvePtr curve = _document->objectStore()->createObject<Curve>();
-
     Q_ASSERT(curve);
 
+    if (!_vectorX) {
+      setVectorX(dataObject->inputVectors().value(dataObject->inputVectorList().first()));
+    }
+    Q_ASSERT(_vectorX);
     curve->setXVector(_vectorX);
 
     VectorPtr yVector = dataObject->outputVectors().value(dataObject->outputVectorList().first());


More information about the Kst mailing list