X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e4db172a3b318df9aff178eb6c5da149d56e0859..cb305e1e9ff819725734250d3020c1a074ef8174:/src/mac/carbon/dcclient.cpp?ds=sidebyside diff --git a/src/mac/carbon/dcclient.cpp b/src/mac/carbon/dcclient.cpp index 24e5d95e30..0e0b775e92 100644 --- a/src/mac/carbon/dcclient.cpp +++ b/src/mac/carbon/dcclient.cpp @@ -15,14 +15,14 @@ #ifndef WX_PRECOMP #include "wx/log.h" + #include "wx/window.h" + #include "wx/dcmemory.h" + #include "wx/settings.h" + #include "wx/toplevel.h" + #include "wx/math.h" + #include "wx/region.h" #endif -#include "wx/dcmemory.h" -#include "wx/region.h" -#include "wx/window.h" -#include "wx/toplevel.h" -#include "wx/settings.h" -#include "wx/math.h" #include "wx/mac/private.h" //----------------------------------------------------------------------------- @@ -75,7 +75,11 @@ static wxBrush MacGetBackgroundBrush( wxWindow* window ) break ; } - if ( parent->IsKindOf( CLASSINFO( wxNotebook ) ) || parent->IsKindOf( CLASSINFO( wxTabCtrl ) ) ) + if ( parent->IsKindOf( CLASSINFO( wxNotebook ) ) +#if wxUSE_TAB_DIALOG + || parent->IsKindOf( CLASSINFO( wxTabCtrl ) ) +#endif // wxUSE_TAB_DIALOG + ) { Rect extent = { 0 , 0 , 0 , 0 } ; int x , y ;