[Kst] extragear/graphics/kst/kst

Rick Chern rchern at interchange.ubc.ca
Thu Jul 14 20:50:12 CEST 2005


SVN commit 434598 by rchern:

Fix gradient

 M  +4 -4      kstsmatrix.cpp  


--- trunk/extragear/graphics/kst/kst/kstsmatrix.cpp #434597:434598
@@ -134,12 +134,12 @@
   }
   
   // fill in the matrix with the gradient
-  for (int i = 0; i < _nY; i++) {
-    for (int j = 0; j < _nX; j++) {
+  for (int i = 0; i < _nX; i++) {
+    for (int j = 0; j < _nY; j++) {
       if (_xDirection) {
-        _z[i*nX + j] = _gradZMin + i*zIncrement;
+        _z[i*nY + j] = _gradZMin + i*zIncrement;
       } else {
-        _z[i*nX + j] = _gradZMin + j*zIncrement;
+        _z[i*nY + j] = _gradZMin + j*zIncrement;
       }
     }  
   }


More information about the Kst mailing list