1
0
Fork 0

(svn r20358) -Fix [FS#4008]: (r20281) crash when building some stuff when the measurement tooltip is disabled

release/1.1
rubidium 2010-08-04 07:31:29 +00:00
parent ba527ec56e
commit 3fd1fc35e6
1 changed files with 3 additions and 4 deletions

View File

@ -2602,8 +2602,8 @@ calc_heightdiff_single_direction:;
}
ShowMeasurementTooltips(measure_strings_length[index], index, params);
break;
}
break;
case VPM_X_AND_Y_LIMITED: // Drag an X by Y constrained rect area.
limit = (_thd.sizelimit - 1) * TILE_SIZE;
@ -2611,7 +2611,7 @@ calc_heightdiff_single_direction:;
y = sy + Clamp(y - sy, -limit, limit);
/* FALL THROUGH */
case VPM_X_AND_Y: { // drag an X by Y area
case VPM_X_AND_Y: // drag an X by Y area
if (_settings_client.gui.measure_tooltip) {
static const StringID measure_strings_area[] = {
STR_NULL, STR_NULL, STR_MEASURE_AREA, STR_MEASURE_AREA_HEIGHTDIFF
@ -2645,9 +2645,8 @@ calc_heightdiff_single_direction:;
ShowMeasurementTooltips(measure_strings_area[index], index, params);
}
break;
break;
}
default: NOT_REACHED();
}