[Kst] extragear/graphics/kst/kst/extensions/js

Rick Chern rchern at interchange.ubc.ca
Thu Jul 28 20:40:18 CEST 2005


SVN commit 439713 by rchern:

update to use altered matrix functions

 M  +4 -4      bind_matrix.cpp  


--- trunk/extragear/graphics/kst/kst/extensions/js/bind_matrix.cpp #439712:439713
@@ -193,7 +193,7 @@
   Q_UNUSED(exec)
   KstMatrixPtr m = makeMatrix(_d);
   KstReadLocker rl(m);
-  return KJS::Number(m->minZ());
+  return KJS::Number(m->minValue());
 }
 
 
@@ -201,7 +201,7 @@
   Q_UNUSED(exec)
   KstMatrixPtr m = makeMatrix(_d);
   KstReadLocker rl(m);
-  return KJS::Number(m->maxZ());
+  return KJS::Number(m->maxValue());
 }
 
 
@@ -209,7 +209,7 @@
   Q_UNUSED(exec)
   KstMatrixPtr m = makeMatrix(_d);
   KstReadLocker rl(m);
-  return KJS::Number(m->meanZ());
+  return KJS::Number(m->meanValue());
 }
 
 
@@ -266,7 +266,7 @@
   }
 
   m->writeLock();
-  m->resize(cols * rows);
+  m->resize(rows, cols);
   m->writeUnlock();
 
   return KJS::Undefined();


More information about the Kst mailing list