[Kst] extragear/graphics/kst/kst

George Staikos staikos at kde.org
Tue Jan 31 05:45:45 CET 2006


SVN commit 504022 by staikos:

Fix crash with edit-multiple and not changing the vector
Reviewed by Barth.


 M  +5 -1      kstpsddialog_i.cpp  


--- trunk/extragear/graphics/kst/kst/kstpsddialog_i.cpp #504021:504022
@@ -245,9 +245,13 @@
   psPtr->writeLock();
 
   KST::vectorList.lock().readLock();
-  psPtr->setVector(*KST::vectorList.findTag(_w->_vector->selectedVector())); 
+  KstVectorPtr v = *KST::vectorList.findTag(_w->_vector->selectedVector());
   KST::vectorList.lock().readUnlock();
 
+  if (v) { // Can be null if edit multiple and it wasn't changed
+    psPtr->setVector(v);
+  }
+
   // get the values that need to be checked for consistency
   double pSampRate;
   int pFFTLen;


More information about the Kst mailing list