1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-01-18 19:52:09 +01:00

Fixed broken maximal ticks count limitation

This commit is contained in:
Martin Tůma 2019-08-26 20:40:14 +02:00
parent ae64ef9d83
commit 1addb1118d

View File

@ -30,7 +30,7 @@ private:
Ticks::Ticks(double minValue, double maxValue, int maxCount)
{
double range = niceNum(maxValue - minValue, false);
_d = niceNum(range / maxCount, true);
_d = niceNum(range / maxCount, false);
_min = ceil(minValue / _d) * _d;
_max = floor(maxValue / _d) * _d;
}