summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/viewport.cpp3
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;