X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6334d90353c18963d4fd7c2cafd782fb61dd6e71..3b0265a32c4b23fbe7b0cf2e8ba1581889da6195:/src/generic/propdlg.cpp diff --git a/src/generic/propdlg.cpp b/src/generic/propdlg.cpp index d463f21ead..15cd495c34 100644 --- a/src/generic/propdlg.cpp +++ b/src/generic/propdlg.cpp @@ -119,15 +119,11 @@ void wxPropertySheetDialog::CreateButtons(int flags) #endif wxSizer *buttonSizer = CreateButtonSizer( flags & ButtonSizerFlags ); - if(buttonSizer->GetChildren().GetCount() > 0 ) + if( buttonSizer ) { m_innerSizer->Add( buttonSizer, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT|wxRIGHT, 2); m_innerSizer->AddSpacer(2); } - else - { - delete buttonSizer; - } #ifdef __POCKETPC__ // restore system option