1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-17 01:12:39 +01:00

(svn r25102) [1.3] -Backport from trunk:

- Fix: Limit aircraft property 0D to 19, since the conversion result to km-ish/h needs to fit into a byte [FS#5492] (r25099)
- Fix: Clicking the statusbar crashed, when news were pending but no news were shown yet [FS#5486] (r25093)
- Fix: Make editbox character filters also apply to pasted content from clipboard (r25090, r25089)
- Fix: Catch exception anonymously, if the exception content is not of interest [FS#5500] (r25081)
This commit is contained in:
rubidium
2013-03-17 20:58:40 +00:00
parent 278cebf202
commit 42e569e0d1
14 changed files with 26 additions and 21 deletions

View File

@@ -753,7 +753,7 @@ HandleEditBoxResult QueryString::HandleEditBoxKey(Window *w, int wid, uint16 key
break;
default:
if (IsValidChar(key, this->afilter)) {
if (IsValidChar(key, this->text.afilter)) {
edited = this->text.InsertChar(key);
} else {
state = ES_NOT_HANDLED;
@@ -878,7 +878,7 @@ struct QueryStringWindow : public Window
this->editbox.caption = caption;
this->editbox.cancel_button = WID_QS_CANCEL;
this->editbox.ok_button = WID_QS_OK;
this->editbox.afilter = afilter;
this->editbox.text.afilter = afilter;
this->flags = flags;
this->InitNested(desc, WN_QUERY_STRING);