summaryrefslogtreecommitdiffstats
path: root/src/location/maps/qgeomapobjectengine_p.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/location/maps/qgeomapobjectengine_p.cpp')
-rw-r--r--src/location/maps/qgeomapobjectengine_p.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/location/maps/qgeomapobjectengine_p.cpp b/src/location/maps/qgeomapobjectengine_p.cpp
index 5722dda2..7579b829 100644
--- a/src/location/maps/qgeomapobjectengine_p.cpp
+++ b/src/location/maps/qgeomapobjectengine_p.cpp
@@ -171,6 +171,9 @@ void QGeoMapObjectEngine::removeObject(QGeoMapObject *object)
foreach (QRectF rect, rectsToUpdate)
mdp->emitUpdateMapDisplay(rect);
+
+ objectsForLatLonUpdate.removeAll(object);
+ objectsForPixelUpdate.removeAll(object);
}
}