]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stubs/frame.cpp
fixed an over-optimisation
[wxWidgets.git] / src / stubs / frame.cpp
index c0b6d6b932a25f7cd85e4c628f3ba4de886bee6e..0a15c650aff7e784c60b0e3c5e6dbc4cde816f30 100644 (file)
@@ -451,7 +451,8 @@ void wxFrame::ProcessCommand(int id)
   }
 */
 
-  GetEventHandler()->ProcessEvent(commandEvent);
+  wxEvtHandler* evtHandler = GetEventHandler();
+  evtHandler->ProcessEvent(commandEvent);
 }
 
 // Checks if there is a toolbar, and returns the first free client position