[Kst] extragear/graphics/kst/kst

George Staikos staikos at kde.org
Mon Nov 28 22:20:47 CET 2005


SVN commit 483956 by staikos:

guard the error vectors too


 M  +32 -8     kstvcurve.cpp  


--- trunk/extragear/graphics/kst/kst/kstvcurve.cpp #483955:483956
@@ -288,7 +288,10 @@
   if (yv) {
     y = yv->interpolate(i, NS);
   }
-  ex = _inputVectors[EXVECTOR]->interpolate(i, NS);
+  KstVectorPtr exv = xErrorVector();
+  if (exv) {
+    ex = exv->interpolate(i, NS);
+  }
 }
 
 
@@ -301,7 +304,10 @@
   if (yv) {
     y = yv->interpolate(i, NS);
   }
-  ex = _inputVectors[EXMINUSVECTOR]->interpolate(i, NS);
+  KstVectorPtr exmv = xMinusErrorVector();
+  if (exmv) {
+    ex = exmv->interpolate(i, NS);
+  }
 }
 
 
@@ -314,8 +320,14 @@
   if (yv) {
     y = yv->interpolate(i, NS);
   }
-  explus = _inputVectors[EXVECTOR]->interpolate(i, NS);
-  exminus = _inputVectors[EXMINUSVECTOR]->interpolate(i, NS);
+  KstVectorPtr exv = xErrorVector();
+  if (exv) {
+    explus = exv->interpolate(i, NS);
+  }
+  KstVectorPtr exmv = xMinusErrorVector();
+  if (exmv) {
+    exminus = exmv->interpolate(i, NS);
+  }
 }
 
 
@@ -328,7 +340,10 @@
   if (yv) {
     y = yv->interpolate(i, NS);
   }
-  ey = _inputVectors[EYVECTOR]->interpolate(i, NS);
+  KstVectorPtr eyv = yErrorVector();
+  if (eyv) {
+    ey = eyv->interpolate(i, NS);
+  }
 }
 
 
@@ -341,7 +356,10 @@
   if (yv) {
     y = yv->interpolate(i, NS);
   }
-  ey = _inputVectors[EYMINUSVECTOR]->interpolate(i, NS);
+  KstVectorPtr eyv = yMinusErrorVector();
+  if (eyv) {
+    ey = eyv->interpolate(i, NS);
+  }
 }
 
 
@@ -354,8 +372,14 @@
   if (yv) {
     y = yv->interpolate(i, NS);
   }
-  eyplus = _inputVectors[EYVECTOR]->interpolate(i, NS);
-  eyminus = _inputVectors[EYMINUSVECTOR]->interpolate(i, NS);
+  KstVectorPtr eyv = yErrorVector();
+  if (eyv) {
+    eyplus = eyv->interpolate(i, NS);
+  }
+  KstVectorPtr eymv = yMinusErrorVector();
+  if (eymv) {
+    eyminus = eymv->interpolate(i, NS);
+  }
 }
 
 


More information about the Kst mailing list