[Kst] branches/work/kst/2.0.4-rc2/src/libkstapp

Peter Kümmel syntheticpp at gmx.net
Mon Sep 12 10:19:25 UTC 2011


SVN commit 1253017 by kuemmel:

mingw fixes

 M  +3 -0      changedatasampledialog.cpp  
 M  +4 -4      rangetab.cpp  


--- branches/work/kst/2.0.4-rc2/src/libkstapp/changedatasampledialog.cpp #1253016:1253017
@@ -21,6 +21,9 @@
 #include "dialogdefaults.h"
 #include "updatemanager.h"
 
+#include <QMessageBox>
+
+
 namespace Kst {
 
 ChangeDataSampleDialog::ChangeDataSampleDialog(QWidget *parent)
--- branches/work/kst/2.0.4-rc2/src/libkstapp/rangetab.cpp #1253016:1253017
@@ -60,12 +60,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