From ae5593bd23faf29730c4a901fb459a2d6013f65d Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Tue, 2 Mar 2021 22:34:43 +0100 Subject: [PATCH] Fix wxButton page in widgets sample Enable image alignment radio box only if button with text and image is active because it is applicable only in this case. --- samples/widgets/button.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/widgets/button.cpp b/samples/widgets/button.cpp index a998ee3177..f4232fa027 100644 --- a/samples/widgets/button.cpp +++ b/samples/widgets/button.cpp @@ -547,6 +547,7 @@ void ButtonWidgetsPage::CreateButton() m_chkUseFocused->Enable(showsBitmap); m_chkUseCurrent->Enable(showsBitmap); m_chkUseDisabled->Enable(showsBitmap); + m_radioImagePos->Enable(m_chkTextAndBitmap->IsChecked()); if ( m_chkAuthNeeded->GetValue() ) m_button->SetAuthNeeded();