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:
@@ -105,10 +105,11 @@ wxObject *wxMdiXmlHandler::DoCreateResource()
|
|||||||
frame->SetClientSize(GetSize());
|
frame->SetClientSize(GetSize());
|
||||||
if (HasParam(wxT("pos")))
|
if (HasParam(wxT("pos")))
|
||||||
frame->Move(GetPosition());
|
frame->Move(GetPosition());
|
||||||
if (HasParam(wxT("icon")) && frame->IsKindOf(CLASSINFO(wxFrame)))
|
if (HasParam(wxT("icon")))
|
||||||
{
|
{
|
||||||
wxFrame* f = wxDynamicCast(f, wxFrame);
|
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);
|
SetupWindow(frame);
|
||||||
|
Reference in New Issue
Block a user