]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wincmn.cpp
more avoiding direct struct access
[wxWidgets.git] / src / common / wincmn.cpp
index 2c58ce1ec1be00242d7b546d36520c9edeb33011..b2c96009acea21c1beed8c5bc7e44624dc75efaf 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        src/common/window.cpp
+// Name:        src/common/wincmn.cpp
 // Purpose:     common (to all ports) wxWindow functions
 // Author:      Julian Smart, Vadim Zeitlin
 // Modified by:
@@ -1064,7 +1064,7 @@ void wxWindowBase::SendSizeEvent(int flags)
     wxSizeEvent event(GetSize(), GetId());
     event.SetEventObject(this);
     if ( flags & wxSEND_EVENT_POST )
-        wxPostEvent(this, event);
+        wxPostEvent(GetEventHandler(), event);
     else
         HandleWindowEvent(event);
 }