diff options
author | peter1138 <peter1138@openttd.org> | 2019-03-21 18:03:39 +0000 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-03-21 19:14:41 +0000 |
commit | 1585c12bb9b0306739320e70513195d11206da2c (patch) | |
tree | 9592f7f30964058d6b8b6a3f62d24cdda328b793 | |
parent | 0837a1a398b4c9bd192b0575e9ace6c069ec93a8 (diff) | |
download | openttd-1585c12bb9b0306739320e70513195d11206da2c.tar.xz |
Fix 4da83d2f66: Remove measurement tooltips when completed.
-rw-r--r-- | src/viewport.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp index 729dfca7b..2cb3baa57 100644 --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -2514,7 +2514,7 @@ static inline void ShowMeasurementTooltips(StringID str, uint paramcount, const GuiShowTooltips(_thd.GetCallbackWnd(), str, paramcount, params, close_cond); } -void HideMeasurementTooltips() +static void HideMeasurementTooltips() { DeleteWindowById(WC_TOOLTIPS, 0); } @@ -3192,6 +3192,7 @@ EventState VpHandlePlaceSizingDrag() } SetTileSelectSize(1, 1); + HideMeasurementTooltips(); w->OnPlaceMouseUp(_thd.select_method, _thd.select_proc, _thd.selend, TileVirtXY(_thd.selstart.x, _thd.selstart.y), TileVirtXY(_thd.selend.x, _thd.selend.y)); return ES_HANDLED; |