mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 11:45:53 +01:00
Fixed tick box size computation
This commit is contained in:
parent
47206316b7
commit
494a8a6da1
@ -326,7 +326,7 @@ void PathItem::updateTicks()
|
|||||||
|
|
||||||
int ts = tickSize();
|
int ts = tickSize();
|
||||||
int tc = _path.last().last().distance() / (ts * xInM());
|
int tc = _path.last().last().distance() / (ts * xInM());
|
||||||
QRect tr = PathTickItem::tickRect(ts * (tc - 1));
|
QRect tr = PathTickItem::tickRect(ts * tc);
|
||||||
|
|
||||||
_ticks.resize(tc);
|
_ticks.resize(tc);
|
||||||
for (int i = 0; i < tc; i++) {
|
for (int i = 0; i < tc; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user