summaryrefslogtreecommitdiff
path: root/src/viewport.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-12-12 14:14:26 +0000
committerrubidium <rubidium@openttd.org>2010-12-12 14:14:26 +0000
commita029b2b83aa344fdd8ba1f7bc0915205c52daca0 (patch)
tree95fc2013ee1d0e8c8ecd5b02ec8b807047922267 /src/viewport.cpp
parent5910bde58367764387e00c76e14d7465be942e7f (diff)
downloadopenttd-a029b2b83aa344fdd8ba1f7bc0915205c52daca0.tar.xz
(svn r21477) -Fix [FS#4300]: tooltips were removed when their related window got closed
Diffstat (limited to 'src/viewport.cpp')
-rw-r--r--src/viewport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp
index 01b98effa..21ca5a81d 100644
--- a/src/viewport.cpp
+++ b/src/viewport.cpp
@@ -2058,7 +2058,7 @@ void UpdateTileSelection()
static inline void ShowMeasurementTooltips(StringID str, uint paramcount, const uint64 params[], TooltipCloseCondition close_cond = TCC_LEFT_CLICK)
{
if (!_settings_client.gui.measure_tooltip) return;
- GuiShowTooltips(str, paramcount, params, close_cond);
+ GuiShowTooltips(FindWindowById(_thd.window_class, _thd.window_number), str, paramcount, params, close_cond);
}
/** highlighting tiles while only going over them with the mouse */