Threw in an ifdef to fix differences between qwt 5.2 and qwt 5.1.2

This commit is contained in:
Justin F. Knotzke
2009-06-22 12:02:21 +00:00
parent e8f2877539
commit 38f8283ece

View File

@@ -54,8 +54,14 @@ void LogTimeScaleEngine::autoScale(int maxNumSteps,
qSwap(x1, x2);
QwtDoubleInterval interval(
x1 / pow(10.0, loMargin()),
x2 * pow(10.0, hiMargin())
#if (QWT_VERSION >= 0x050200)
x1 / pow(10.0, lowerMargin()),
x2 * pow(10.0, upperMargin())
#else
x1 / pow(10.0, loMargin()),
x2 * pow(10.0, hiMargin())
#endif
);
double logRef = 1.0;