Use base class ctors in wxTopLevelWindow.
This avoids the second call to Init() already called by wxTopLevelWindowNative. Closes #11054. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61568 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
9a38aced4e
commit
49899527ff
@ -349,7 +349,7 @@ protected:
|
||||
{
|
||||
public:
|
||||
// construction
|
||||
wxTopLevelWindow() { Init(); }
|
||||
wxTopLevelWindow() { }
|
||||
wxTopLevelWindow(wxWindow *parent,
|
||||
wxWindowID winid,
|
||||
const wxString& title,
|
||||
@ -357,9 +357,9 @@ protected:
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxDEFAULT_FRAME_STYLE,
|
||||
const wxString& name = wxFrameNameStr)
|
||||
: wxTopLevelWindowNative(parent, winid, title,
|
||||
pos, size, style, name)
|
||||
{
|
||||
Init();
|
||||
Create(parent, winid, title, pos, size, style, name);
|
||||
}
|
||||
|
||||
DECLARE_DYNAMIC_CLASS_NO_COPY(wxTopLevelWindow)
|
||||
|
Loading…
Reference in New Issue
Block a user