[Kst] kdeextragear-2/kst/kst
Andrew Walker
arwalker at sumusltd.com
Wed Aug 4 04:36:37 CEST 2004
CVS commit by arwalker:
Fix for 86524.
M +17 -2 kst2dplot.cpp 1.196
--- kdeextragear-2/kst/kst/kst2dplot.cpp #1.195:1.196
@@ -17,5 +18,19 @@
#include <stdio.h>
#include <math.h>
+
+#ifdef __WINDOWS__
+#include <float.h>
#include <limits.h>
+#define MAXDOUBLE DBL_MAX
+#define MINDOUBLE DBL_MIN
+#define std
+#elif defined __APPLE__
+#include <float.h>
+#define MAXDOUBLE DBL_MAX
+#define MINDOUBLE DBL_MIN
+#else
+#include <values.h>
+#include <limits.h>
+#endif
// include files for Qt
@@ -55,6 +70,6 @@
#include "kstlegend.h"
-#define X_MIN_DIFFERENCE 0.000001
-#define Y_MIN_DIFFERENCE 0.000001
+#define X_MIN_DIFFERENCE (MINDOUBLE*10.0)
+#define Y_MIN_DIFFERENCE (MINDOUBLE*10.0)
Kst2DPlot::Kst2DPlot(const QString& in_tag,
More information about the Kst
mailing list