mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-25 00:43:39 +08:00
Avoid debug warnings from wxPropertyGridManager::Create()
Skip calling Init2(), which assumes that the window has been successfully created, if base class Create() failed. See #26433.
This commit is contained in:
@@ -628,16 +628,18 @@ bool wxPropertyGridManager::Create( wxWindow *parent,
|
||||
if ( !m_pPropGrid )
|
||||
m_pPropGrid = CreatePropertyGrid();
|
||||
|
||||
bool res = wxPanel::Create( parent, id, pos, size,
|
||||
(style & wxWINDOW_STYLE_MASK)|wxWANTS_CHARS,
|
||||
name );
|
||||
if ( !wxPanel::Create( parent, id, pos, size,
|
||||
(style & wxWINDOW_STYLE_MASK)|wxWANTS_CHARS,
|
||||
name ) )
|
||||
return false;
|
||||
|
||||
Init2(style);
|
||||
|
||||
SetInitialSize(size);
|
||||
// Create controls
|
||||
RecreateControls();
|
||||
|
||||
return res;
|
||||
return true;
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user