use wxSizerFlags and updated CreateButtonSizer() in all generic dialogs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41838 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user