From 9941faa21827c3df72d49951017fb243722abf88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Tue, 2 Feb 2016 09:07:04 +0100 Subject: [PATCH] Added proper initialization to silence analysis tools --- src/scaleitem.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/scaleitem.cpp b/src/scaleitem.cpp index 5b172377..714f8cae 100644 --- a/src/scaleitem.cpp +++ b/src/scaleitem.cpp @@ -15,6 +15,10 @@ ScaleItem::ScaleItem(QGraphicsItem *parent) : QGraphicsItem(parent) { _units = Metric; + _zoom = ZOOM_MIN; + _lat = 0; + + computeScale(); } QRectF ScaleItem::boundingRect() const