From 23ddba38a5f6841d6b914c2d108d059325229c9d Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sun, 3 Jan 2016 20:04:53 +0000 Subject: [PATCH] Fix cargo dest overlay not being updated after a zoom change. --- src/main_gui.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main_gui.cpp b/src/main_gui.cpp index dad3b7d2c4..8b206855c8 100644 --- a/src/main_gui.cpp +++ b/src/main_gui.cpp @@ -184,6 +184,9 @@ bool DoZoomInOutWindow(ZoomStateChange how, Window *w) } /* Update the windows that have zoom-buttons to perhaps disable their buttons */ w->InvalidateData(); + if (how != ZOOM_NONE) { + RebuildViewportOverlay(w); + } return true; }