diff options
Diffstat (limited to 'src/imports/location/qdeclarativerectanglemapitem.cpp')
-rw-r--r-- | src/imports/location/qdeclarativerectanglemapitem.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/imports/location/qdeclarativerectanglemapitem.cpp b/src/imports/location/qdeclarativerectanglemapitem.cpp index faf1ad94..2738a1df 100644 --- a/src/imports/location/qdeclarativerectanglemapitem.cpp +++ b/src/imports/location/qdeclarativerectanglemapitem.cpp @@ -336,6 +336,14 @@ void QDeclarativeRectangleMapItem::handleCameraDataChanged(const QGeoCameraData& geometry_.markSourceDirty(); borderGeometry_.markSourceDirty(); } + + QSizeF sz = QSizeF(quickMap()->width(), quickMap()->height()); + if (sz != mapSize_) { + mapSize_ = sz; + geometry_.markSourceDirty(); + borderGeometry_.markSourceDirty(); + } + geometry_.markScreenDirty(); borderGeometry_.markScreenDirty(); updateMapItem(); |