Commit ef26f5e0 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).
(cherry picked from commit 78980c37)
BUG: 193824
BUG: 264880
parent 3c395f39
......@@ -233,6 +233,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