From 4430ab866101ca8c6be5abc2b178b4c1c34aeb14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C4=83t=C4=83lin=20R=C4=83ceanu?= Date: Mon, 30 Jul 2018 04:51:46 +0300 Subject: [PATCH] Disable wxRearrangeCtrl without wxCheckListBox in wxMSW Add a check ensuring that if wxCheckListBox is disabled, then so is wxRearrangeCtrl, to avoid build errors that would happen otherwise. Closes https://github.com/wxWidgets/wxWidgets/pull/866 --- include/wx/msw/chkconf.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/wx/msw/chkconf.h b/include/wx/msw/chkconf.h index 72c3007f97..4ef7be5d7f 100644 --- a/include/wx/msw/chkconf.h +++ b/include/wx/msw/chkconf.h @@ -202,6 +202,10 @@ # undef wxUSE_CHECKLISTBOX # define wxUSE_CHECKLISTBOX 0 # endif +# if !wxUSE_CHECKLISTBOX +# undef wxUSE_REARRANGECTRL +# define wxUSE_REARRANGECTRL 0 +# endif #endif /*