Commit 78980c37 authored by Guillaume Martres's avatar Guillaume Martres
Browse files

PlacemarkLayout: avoid having deleted VisiblePlacemarks in m_paintOrder

setCacheData() runs qDeleteAll on m_visiblePlacemarks but did not remove
them from m_paintOrder. This could cause random crashes (semi-reproducible
at startup by moving/clicking the mouse before the map is loaded).
parent 82396b3b
......@@ -270,6 +270,7 @@ void PlacemarkLayout::setCacheData()
{
const int rowCount = m_placemarkModel->rowCount();
m_paintOrder.clear();
qDeleteAll( m_visiblePlacemarks );
m_visiblePlacemarks.clear();
m_placemarkCache.clear();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment