From dbfa7f339c4828c4b071d8f7eba08a3002d5259e Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Wed, 23 Aug 2006 10:45:51 +0000 Subject: [PATCH] compilation fix for !wxUSE_BUTTON git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/dlgcmn.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common/dlgcmn.cpp b/src/common/dlgcmn.cpp index 1355125f52..dd09b3a322 100644 --- a/src/common/dlgcmn.cpp +++ b/src/common/dlgcmn.cpp @@ -456,6 +456,7 @@ void wxDialogBase::SetEscapeId(int escapeId) bool wxDialogBase::EmulateButtonClickIfPresent(int id) { +#if wxUSE_BUTTON wxButton *btn = wxDynamicCast(FindWindow(id), wxButton); if ( !btn || !btn->IsEnabled() || !btn->IsShown() ) @@ -466,6 +467,10 @@ bool wxDialogBase::EmulateButtonClickIfPresent(int id) btn->GetEventHandler()->ProcessEvent(event); return true; +#else // !wxUSE_BUTTON + wxUnusedVar(id); + return false; +#endif // wxUSE_BUTTON/!wxUSE_BUTTON } bool wxDialogBase::IsEscapeKey(const wxKeyEvent& event) -- 2.47.2