changeset 17934:e3bb6dadeb12 draft

(svn r22739) -Fix: The measurement tooltip is supposed to be hidden when not dragging an area.
author frosch <frosch@openttd.org>
date Sat, 13 Aug 2011 10:43:11 +0000
parents deb19d948306
children 1b0e2d81e31b
files src/viewport.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/viewport.cpp
+++ b/src/viewport.cpp
@@ -2786,7 +2786,7 @@
 					}
 				}
 
-				if (t0 != 1 || t1 != 1) {
+				if (dx != 1 || dy != 1) {
 					int heightdiff = CalcHeightdiff(style, 0, t0, t1);
 
 					params[index++] = dx;