]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/containr.cpp
use GetFont() instead of (possibly not initialized) m_font in GetCharWidth/Height()
[wxWidgets.git] / src / common / containr.cpp
index dfb7a123d86a1272de12365436e8c4cdc2d0a4d9..368cee065daaa97b9e30e7b3d0d67dc2c2b8baac 100644 (file)
@@ -293,6 +293,9 @@ void wxControlContainer::HandleOnNavigationKey( wxNavigationKeyEvent& event )
             // and instead give it to the first/last child depending from which
             // direction we're coming
             event.SetEventObject(m_winParent);
+            // disable propagation for this call as otherwise the event might
+            // bounce back to us.
+            wxPropagationDisabler disableProp(event);
             if ( !child->GetEventHandler()->ProcessEvent(event) )
             {
                 // set it first in case SetFocusFromKbd() results in focus