1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-06-07 18:53:02 +02:00

Code cleanup

This commit is contained in:
Martin Tůma 2025-06-06 19:01:48 +02:00
parent f07f3de19f
commit 2efc7a3d2c

View File

@ -172,12 +172,10 @@ PathItem *MapView::addTrack(const Track &track)
return 0; return 0;
} }
QColor color(_palette.nextColor());
TrackItem *ti = new TrackItem(track, _map); TrackItem *ti = new TrackItem(track, _map);
_tracks.append(ti); _tracks.append(ti);
_tr |= ti->path().boundingRect(); _tr |= ti->path().boundingRect();
ti->setColor(color); ti->setColor(_palette.nextColor());
ti->setWidth(_trackWidth); ti->setWidth(_trackWidth);
ti->setPenStyle(_trackStyle); ti->setPenStyle(_trackStyle);
ti->setVisible(_showTracks); ti->setVisible(_showTracks);