mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-01-19 04:02:09 +01:00
Fixed broken maximal ticks count limitation
This commit is contained in:
parent
ae64ef9d83
commit
1addb1118d
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user