]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/scrlwing.cpp
reuse operator bool() check in compatibility_iterator::IndexOf() instead of rewriting it
[wxWidgets.git] / 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)
         // 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;
         }
         {
             return true;
         }