From 44d1c5534757a284b528dfe30ba227675234b4e4 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 5 Dec 2010 22:25:36 +0000 Subject: (svn r21415) -Codechange: limit station/waypoint name by amount of characters, not bytes --- src/waypoint_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/waypoint_gui.cpp') diff --git a/src/waypoint_gui.cpp b/src/waypoint_gui.cpp index b766a81f2..f050b3c26 100644 --- a/src/waypoint_gui.cpp +++ b/src/waypoint_gui.cpp @@ -101,7 +101,7 @@ public: case WAYPVW_RENAME: // rename SetDParam(0, this->wp->index); - ShowQueryString(STR_WAYPOINT_NAME, STR_EDIT_WAYPOINT_NAME, MAX_LENGTH_STATION_NAME_BYTES, MAX_LENGTH_STATION_NAME_PIXELS, this, CS_ALPHANUMERAL, QSF_ENABLE_DEFAULT); + ShowQueryString(STR_WAYPOINT_NAME, STR_EDIT_WAYPOINT_NAME, MAX_LENGTH_STATION_NAME_CHARS, MAX_LENGTH_STATION_NAME_PIXELS, this, CS_ALPHANUMERAL, QSF_ENABLE_DEFAULT | QSF_LEN_IN_CHARS); break; case WAYPVW_SHOW_VEHICLES: // show list of vehicles having this waypoint in their orders -- cgit v1.2.3-54-g00ecf