mail[Wesnoth-commits] r27486 - /trunk/src/gui/widgets/event_handler.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by koraq on June 24, 2008 - 19:36:
Author: mordante
Date: Tue Jun 24 18:44:10 2008
New Revision: 27486

URL: http://svn.gna.org/viewcvs/wesnoth?rev=27486&view=rev
Log:
Finally commit this one; don't assert when the user uses a scrollwheel.
Thanks to loonycyborg and Rhonda for reporting it.

Modified:
    trunk/src/gui/widgets/event_handler.cpp

Modified: trunk/src/gui/widgets/event_handler.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/event_handler.cpp?rev=27486&r1=27485&r2=27486&view=diff
==============================================================================
--- trunk/src/gui/widgets/event_handler.cpp (original)
+++ trunk/src/gui/widgets/event_handler.cpp Tue Jun 24 18:44:10 2008
@@ -161,7 +161,8 @@
                                        // cast to avoid being printed as 
char.
                                        WRN_G_E << "Unhandled 'mouse button 
down' event for button " 
                                                << 
static_cast<Uint32>(event.button.button) << ".\n";
-                                       assert(false);
+                                       // The scrollwheel also behaves like 
a button, so ignore it.
+//                                     assert(false);
                                        break;
                        }
                        break;
@@ -191,7 +192,8 @@
                                        // cast to avoid being printed as 
char.
                                        WRN_G_E << "Unhandled 'mouse button 
up' event for button " 
                                                << 
static_cast<Uint32>(event.button.button) << ".\n";
-                                       assert(false);
+                                       // The scrollwheel also behaves like 
a button, so ignore it.
+//                                     assert(false);
                                        break;
                        }
                        break;




Related Messages


Powered by MHonArc, Updated Tue Jun 24 21:02:46 2008