Fixed bug #19538: Filters matching 0 saved games cause crash.

Patch #3220 by trademark
This commit is contained in:
Iurii Chernyi 2012-03-30 15:54:49 +00:00
parent 809c14f9a5
commit 0f10db9d92
3 changed files with 7 additions and 1 deletions

View file

@ -119,6 +119,7 @@ Version 1.11.0-svn:
* Re-fogging does not occur in the middle of the player's turn.
* Fixed provided saved game filenames being ignored when requesting to
save a MP game due to a network or OOS error (bug #19562)
* Fixed bug #19538: Filters matching 0 saved games cause crash
* Whiteboard
* Fixed bug #19369: Using planning mode can cause losing ability to move my units
* Fixed bug #19408: Crash shortly after executing invalid multi-turn move

View file

@ -1178,6 +1178,10 @@
comment = "WML validation"
email = "nsytyi_AT_gmail.com"
[/entry]
[entry]
name = "Talbot Pierre (Trademark)"
email = "ptablot@mopong.net"
[/entry]
[entry]
name = "Tamas K. (negusnyul)"
[/entry]

View file

@ -330,7 +330,8 @@ public:
void draw_contents();
void set_selection(int index) {
index_ = textbox_.get_index(index);
int res = textbox_.get_index(index);
index_ = (res >= 0) ? res : index_;
set_dirty();
}