]> git.saurik.com Git - wxWidgets.git/commitdiff
If we processed a command event, return true, or we could end up processing
authorJulian Smart <julian@anthemion.co.uk>
Mon, 13 Mar 2006 15:11:14 +0000 (15:11 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 13 Mar 2006 15:11:14 +0000 (15:11 +0000)
it again.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/scrlwing.cpp

index 6eff74787a8d6dd64d611bea581e85357c1e1674..7a684f0ac26064ad8828df19e526688de2b68048 100644 (file)
@@ -222,7 +222,7 @@ bool wxScrollHelperEvtHandler::ProcessEvent(wxEvent& event)
         // normally, nothing more to do here - except if it was a paint event
         // which wasn't really processed, then we'll try to call our
         // OnDraw() below (from HandleOnPaint)
-        if ( m_hasDrawnWindow )
+        if ( m_hasDrawnWindow || event.IsCommandEvent() )
         {
             return true;
         }