[Kst] [PATCH] bind_histogram was incomplete

George Staikos staikos at kde.org
Sat Jan 28 18:41:41 CET 2006


I noticed that this call was incomplete and would give random results.  Patch 
follows.  Ok for commit?

Index: bind_histogram.cpp
===================================================================
--- bind_histogram.cpp  (revision 502694)
+++ bind_histogram.cpp  (working copy)
@@ -368,7 +368,8 @@
     return KJS::Undefined();
   }

-  double x0, x1;
+  double x0 = args[0].toNumber(exec);
+  double x1 = args[1].toNumber(exec);

   KstWriteLocker wl(d);
   d->setXRange(x0, x1);

-- 
George Staikos
KDE Developer				http://www.kde.org/
Staikos Computing Services Inc.		http://www.staikos.net/


More information about the Kst mailing list