diff --git a/resource/UKControllerPlugin.rc b/resource/UKControllerPlugin.rc index 2ce7dcce0..0c71163c5 100644 --- a/resource/UKControllerPlugin.rc +++ b/resource/UKControllerPlugin.rc @@ -190,7 +190,7 @@ BEGIN EDITTEXT IDC_SRD_DESTINATION,98,24,71,14,ES_UPPERCASE | ES_AUTOHSCROLL LTEXT "Destination Fix or Airfield*",IDC_SRD_DESTINATION_STATIC,7,27,85,8 EDITTEXT IDC_SRD_CRUISE,98,43,72,14,ES_AUTOHSCROLL | ES_NUMBER - LTEXT "Requested Cruise Altitude",IDC_SRD_CRUISE_STATIC,7,46,84,8 + LTEXT "Cruising Altitude or Level",IDC_SRD_CRUISE_STATIC,7,46,80,8 LTEXT "* Required Field",IDC_STATIC_REQUIRED,213,27,52,8 CONTROL "",IDC_SRD_RESULTS,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_EDITLABELS | LVS_ALIGNLEFT | WS_BORDER | WS_TABSTOP,7,85,295,90 DEFPUSHBUTTON "Search",IDC_SRD_SEARCH,59,61,50,14 diff --git a/src/plugin/srd/SrdSearchDialog.cpp b/src/plugin/srd/SrdSearchDialog.cpp index a11c7417f..115c3e541 100644 --- a/src/plugin/srd/SrdSearchDialog.cpp +++ b/src/plugin/srd/SrdSearchDialog.cpp @@ -211,8 +211,12 @@ namespace UKControllerPlugin { SendDlgItemMessage(hwnd, IDC_SRD_CRUISE, WM_GETTEXT, 255, reinterpret_cast(&cruiseBuffer)); std::string requestedLevel = UKControllerPlugin::Hold::ConvertFromTchar(cruiseBuffer); - if (requestedLevel != "") { + // If the requested level is < 100, assume it's a flight-level + if (!requestedLevel.empty()) { searchParams.requestedLevel = std::stoi(requestedLevel); + if (searchParams.requestedLevel < 1000) { + searchParams.requestedLevel *= 100; + } } // Clear the results list and notes box