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;