]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_mdi.cpp
define WM_CONTEXTMENU if the standard headers don't
[wxWidgets.git] / src / xrc / xh_mdi.cpp
index 980367b19dbb8ce74ae358f937b60b2b8134e232..7a581f80779374a2f9118030aabc84047d82b3e6 100644 (file)
@@ -107,7 +107,7 @@ wxObject *wxMdiXmlHandler::DoCreateResource()
         frame->Move(GetPosition());
     if (HasParam(wxT("icon")))
     {
         frame->Move(GetPosition());
     if (HasParam(wxT("icon")))
     {
-        wxFrame* f = wxDynamicCast(f, wxFrame);
+        wxFrame* f = wxDynamicCast(frame, wxFrame);
         if (f)
             f->SetIcon(GetIcon(wxT("icon"), wxART_FRAME_ICON));
     }
         if (f)
             f->SetIcon(GetIcon(wxT("icon"), wxART_FRAME_ICON));
     }