From ef68861e112d300e5d048259760a22f2b7a98d11 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 29 Dec 2012 21:53:05 +0000 Subject: [PATCH] No changes, just fix unused variable in wxUSE_STATBMP==0 build. Move the condition used only for wxStaticBitmap positioning inside "#if wxUSE_STATBMP" section. Closes #14929. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73318 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/msgdlgg.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/generic/msgdlgg.cpp b/src/generic/msgdlgg.cpp index b2d162d31a..8a16ab3d9c 100644 --- a/src/generic/msgdlgg.cpp +++ b/src/generic/msgdlgg.cpp @@ -166,8 +166,6 @@ void wxGenericMessageDialog::DoCreateMsgdialog() { wxDialog::Create(m_parent, wxID_ANY, m_caption, m_pos, wxDefaultSize, wxDEFAULT_DIALOG_STYLE); - bool is_pda = (wxSystemSettings::GetScreenType() <= wxSYS_SCREEN_PDA); - wxBoxSizer *topsizer = new wxBoxSizer( wxVERTICAL ); wxBoxSizer *icon_text = new wxBoxSizer( wxHORIZONTAL ); @@ -182,7 +180,7 @@ void wxGenericMessageDialog::DoCreateMsgdialog() wxID_ANY, wxArtProvider::GetMessageBoxIcon(m_dialogStyle) ); - if (is_pda) + if ( wxSystemSettings::GetScreenType() <= wxSYS_SCREEN_PDA ) topsizer->Add( icon, 0, wxTOP|wxLEFT|wxRIGHT | wxALIGN_LEFT, 10 ); else icon_text->Add(icon, wxSizerFlags().Top().Border(wxRIGHT, 20)); -- 2.47.2