1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-30 22:51:16 +01:00

Added proper initialization to silence analysis tools

This commit is contained in:
Martin Tůma 2016-02-02 09:07:04 +01:00
parent e7edd5c3c3
commit 9941faa218

View File

@ -15,6 +15,10 @@
ScaleItem::ScaleItem(QGraphicsItem *parent) : QGraphicsItem(parent) ScaleItem::ScaleItem(QGraphicsItem *parent) : QGraphicsItem(parent)
{ {
_units = Metric; _units = Metric;
_zoom = ZOOM_MIN;
_lat = 0;
computeScale();
} }
QRectF ScaleItem::boundingRect() const QRectF ScaleItem::boundingRect() const