]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/menucmn.cpp
Fix compilation with MinGW -std=c++11 option.
[wxWidgets.git] / src / common / menucmn.cpp
index a39ab6852eb592f5f4ec241410c9355375880358..f34a5bf0f6b43ce247da9a2c2a136f7fcfd9e0f8 100644 (file)
@@ -614,7 +614,7 @@ void wxMenuBase::UpdateUI(wxEvtHandler* source)
         {
             wxWindowID itemid = item->GetId();
             wxUpdateUIEvent event(itemid);
-            event.SetEventObject( source );
+            event.SetEventObject( this );
 
             if ( source->ProcessEvent(event) )
             {