From e2b937270afd015016bbcb68dede23c5d4dedf21 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Mon, 31 Jul 2017 23:03:55 +0200 Subject: [PATCH] Check for wxUSE_DC_TRANSFORM_MATRIX dependency on wxUSE_GEOMETRY Transform matrix functions depend on wxAffineMatrix2D which is implemented if wxUSE_GEOMETRY==1. --- include/wx/chkconf.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/wx/chkconf.h b/include/wx/chkconf.h index 52bd2188c8..41797a4048 100644 --- a/include/wx/chkconf.h +++ b/include/wx/chkconf.h @@ -1722,6 +1722,14 @@ # endif #endif /* wxUSE_GRAPHICS_CONTEXT */ +#if wxUSE_DC_TRANSFORM_MATRIX && !wxUSE_GEOMETRY +# ifdef wxABORT_ON_CONFIG_ERROR +# error "wxUSE_DC_TRANSFORM_MATRIX requires wxUSE_GEOMETRY" +# else +# undef wxUSE_DC_TRANSFORM_MATRIX +# define wxUSE_DC_TRANSFORM_MATRIX 0 +# endif +#endif /* wxUSE_GRAPHICS_CONTEXT */ /* generic controls dependencies */ #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)