X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/93f7f8be7ee1df8f5d449a072036f2433a387ab9..6d7b547184bfdcdf67790755deb0122050b1d728:/src/generic/combog.cpp diff --git a/src/generic/combog.cpp b/src/generic/combog.cpp index 84d31db480..5559bff3c8 100644 --- a/src/generic/combog.cpp +++ b/src/generic/combog.cpp @@ -288,11 +288,7 @@ void wxGenericComboControl::OnMouseEvent( wxMouseEvent& event ) if ( PreprocessMouseEvent(event,handlerFlags) ) return; -#ifdef __WXMSW__ - const bool ctrlIsButton = true; -#else - const bool ctrlIsButton = false; -#endif + const bool ctrlIsButton = wxPlatformIs(wxMSW); if ( ctrlIsButton && (m_windowStyle & (wxCC_SPECIAL_DCLICK|wxCB_READONLY)) == wxCB_READONLY )