From 38f8283ecea5c0e32b8379f092fa1a2cfa99a9c0 Mon Sep 17 00:00:00 2001 From: "Justin F. Knotzke" Date: Mon, 22 Jun 2009 12:02:21 +0000 Subject: [PATCH] Threw in an ifdef to fix differences between qwt 5.2 and qwt 5.1.2 --- src/LogTimeScaleEngine.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/LogTimeScaleEngine.cpp b/src/LogTimeScaleEngine.cpp index 9c7ef659d..39cbc3f54 100644 --- a/src/LogTimeScaleEngine.cpp +++ b/src/LogTimeScaleEngine.cpp @@ -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;