From 6ebf749bdc31350139d8804181f39baf411caee3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Mon, 8 Jan 2018 02:25:14 +0100 Subject: [PATCH] Added back missing cache reset (causing huge redraw rects causing system memory exhaustion) --- src/GUI/mapview.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/GUI/mapview.cpp b/src/GUI/mapview.cpp index f34bb771..d3427f29 100644 --- a/src/GUI/mapview.cpp +++ b/src/GUI/mapview.cpp @@ -566,6 +566,9 @@ void MapView::clear() _wr = RectC(); digitalZoom(0); + + // If not reset, causes huge redraw areas (and system memory exhaustion) + resetCachedContent(); } void MapView::showTracks(bool show)