1
0
Fork 0

Fix 4da83d2f66: Remove measurement tooltips when completed.

pull/7401/head
peter1138 2019-03-21 18:03:39 +00:00 committed by PeterN
parent 0837a1a398
commit 1585c12bb9
1 changed files with 2 additions and 1 deletions

View File

@ -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;