From e9611ffaff3a518c19e3f47010d66c25d2ff135f Mon Sep 17 00:00:00 2001 From: jeysbach Date: Tue, 31 Mar 2020 16:03:14 +0200 Subject: [PATCH] Fix #11063: Exchange hack for call to update_scroll (#11178) --- distribution/changelog.txt | 1 + src/openrct2-ui/windows/Scenery.cpp | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 12ae346942..7ee5107c05 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -9,6 +9,7 @@ - Fix: [#10951, #11160] Attempting to place park entrances creates ghost entrances in random locations. - Fix: [#11005] Company value overflows. - Fix: [#11027] Third color on walls becomes black when saving. +- Fix: [#11063] Scrolling position persists when switching tabs in the scenery window. - Improved: [#11157] Slimmer virtual floor lines. 0.2.5 (2020-03-24) diff --git a/src/openrct2-ui/windows/Scenery.cpp b/src/openrct2-ui/windows/Scenery.cpp index f28b1f9d0d..2a6afa5d8b 100644 --- a/src/openrct2-ui/windows/Scenery.cpp +++ b/src/openrct2-ui/windows/Scenery.cpp @@ -705,8 +705,7 @@ static void window_scenery_mousedown(rct_window* w, rct_widgetindex widgetIndex, w->Invalidate(); gSceneryPlaceCost = MONEY32_UNDEFINED; - // HACK: for 3210 Ensures that window_scenery_update_scroll gets called one time - w->max_height = 60; + window_scenery_update_scroll(w); } }