summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/location/declarativemaps/qdeclarativepolylinemapitem.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/location/declarativemaps/qdeclarativepolylinemapitem.cpp b/src/location/declarativemaps/qdeclarativepolylinemapitem.cpp
index 3b004dce..9ef65188 100644
--- a/src/location/declarativemaps/qdeclarativepolylinemapitem.cpp
+++ b/src/location/declarativemaps/qdeclarativepolylinemapitem.cpp
@@ -407,7 +407,7 @@ void QGeoMapPolylineGeometry::updateScreenPoints(const QGeoMap &map,
}
screenBounds_ = bb;
- this->translate( -1 * sourceBounds_.topLeft());
+ this->translate( -1 * sourceBounds_.topLeft() + QPointF(strokeWidth, strokeWidth));
}
QDeclarativePolylineMapItem::QDeclarativePolylineMapItem(QQuickItem *parent)
@@ -763,8 +763,8 @@ void QDeclarativePolylineMapItem::updatePolish()
geometry_.updateSourcePoints(*map(), geopathProjected_, geopath_.boundingGeoRectangle().topLeft());
geometry_.updateScreenPoints(*map(), line_.width());
- setWidth(geometry_.sourceBoundingBox().width());
- setHeight(geometry_.sourceBoundingBox().height());
+ setWidth(geometry_.sourceBoundingBox().width() + 2 * line_.width());
+ setHeight(geometry_.sourceBoundingBox().height() + 2 * line_.width());
setPositionOnMap(geometry_.origin(), -1 * geometry_.sourceBoundingBox().topLeft());
}