mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 08:08:42 +00:00
Threw in an ifdef to fix differences between qwt 5.2 and qwt 5.1.2
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user