Author: crab
Date: Fri Mar 30 17:54:49 2012
New Revision: 53698

URL: http://svn.gna.org/viewcvs/wesnoth?rev=53698&view=rev
Log:
Fixed bug #19538: Filters matching 0 saved games cause crash. Patch #3220 by 
trademark

Modified:
    trunk/changelog
    trunk/data/core/about.cfg
    trunk/src/dialogs.cpp

Modified: trunk/changelog
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/changelog?rev=53698&r1=53697&r2=53698&view=diff
==============================================================================
--- trunk/changelog (original)
+++ trunk/changelog Fri Mar 30 17:54:49 2012
@@ -119,6 +119,7 @@
    * 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

Modified: trunk/data/core/about.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/core/about.cfg?rev=53698&r1=53697&r2=53698&view=diff
==============================================================================
--- trunk/data/core/about.cfg (original)
+++ trunk/data/core/about.cfg Fri Mar 30 17:54:49 2012
@@ -1179,6 +1179,10 @@
         email = "nsytyi_AT_gmail.com"
     [/entry]
     [entry]
+        name = "Talbot Pierre (Trademark)"
+        email = "[email protected]"
+    [/entry]
+    [entry]
         name = "Tamas K. (negusnyul)"
     [/entry]
     [entry]

Modified: trunk/src/dialogs.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/dialogs.cpp?rev=53698&r1=53697&r2=53698&view=diff
==============================================================================
--- trunk/src/dialogs.cpp (original)
+++ trunk/src/dialogs.cpp Fri Mar 30 17:54:49 2012
@@ -330,7 +330,8 @@
 
        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();
        }
 


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to