]> git.saurik.com Git - wxWidgets.git/commitdiff
using existing member
authorStefan Csomor <csomor@advancedconcepts.ch>
Mon, 23 Jan 2012 11:15:18 +0000 (11:15 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Mon, 23 Jan 2012 11:15:18 +0000 (11:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70438 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/carbon/mdi.cpp

index 762f275734e7d809c40151b6d6551f35fcde4214..216c16887e312753cb67cf6949ce50732d5d98b5 100644 (file)
@@ -360,7 +360,7 @@ void wxMDIChildFrame::MacActivate(long timestamp, bool activating)
 {
     wxLogTrace(TRACE_MDI, wxT("MDI child=%p  MacActivate(0x%08lx,%s)"),this, timestamp, activating ? wxT("ACTIV") : wxT("deact"));
 
-    wxMDIParentFrame *mdiparent = wxDynamicCast(m_parent, wxMDIParentFrame);
+    wxMDIParentFrame *mdiparent = m_mdiParent;
     wxASSERT(mdiparent);
 
     if (activating)