[Kst] branches/work/kst/portto4/kst/src/libkstapp

Joshua Netterfield drmrshdw at gmail.com
Fri Sep 2 16:52:55 UTC 2011


SVN commit 1250997 by joshuanetterfield:

Fix for MinGW.


 M  +5 -4      rangetab.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/rangetab.cpp #1250996:1250997
@@ -16,6 +16,7 @@
  ***************************************************************************/
 #include "rangetab.h"
 
+#include <math.h>
 #include <QDebug>
 
 namespace Kst {
@@ -73,12 +74,12 @@
   double ymax = _plotItem->yMax();
   double ymin = _plotItem->yMin();
   if (_plotItem->xAxis()->axisLog()) {
-    xmax = exp10(xmax);
-    xmin = exp10(xmin);
+    xmax = pow(10.0f,xmax);
+    xmin = pow(10.0f,xmin);
   }
   if (_plotItem->yAxis()->axisLog()) {
-    ymax = exp10(ymax);
-    ymin = exp10(ymin);
+    ymax = pow(10.0f,ymax);
+    ymin = pow(10.0f,ymin);
   }
 
   _xRange->setText(QString::number(fabs(xmax - xmin),'g', 13));


More information about the Kst mailing list