there's no reason to do wxRTTI lookup twice when once is enough
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33302 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
3a40452d78
commit
f9bf0c6512
@ -105,10 +105,11 @@ wxObject *wxMdiXmlHandler::DoCreateResource()
|
||||
frame->SetClientSize(GetSize());
|
||||
if (HasParam(wxT("pos")))
|
||||
frame->Move(GetPosition());
|
||||
if (HasParam(wxT("icon")) && frame->IsKindOf(CLASSINFO(wxFrame)))
|
||||
if (HasParam(wxT("icon")))
|
||||
{
|
||||
wxFrame* f = wxDynamicCast(f, wxFrame);
|
||||
f->SetIcon(GetIcon(wxT("icon"), wxART_FRAME_ICON));
|
||||
if (f)
|
||||
f->SetIcon(GetIcon(wxT("icon"), wxART_FRAME_ICON));
|
||||
}
|
||||
|
||||
SetupWindow(frame);
|
||||
|
Loading…
Reference in New Issue
Block a user