]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/dcclient.cpp
hack around a UnicodeEditTextControl which does not deliver a correct selection unles...
[wxWidgets.git] / src / mac / carbon / dcclient.cpp
index f706434036799f99d1193e9da44a50d61957b73d..e0450205976d25ec1754817814180a1b553733b2 100644 (file)
@@ -16,9 +16,9 @@
 #ifndef WX_PRECOMP
     #include "wx/log.h"
     #include "wx/window.h"
+    #include "wx/dcmemory.h"
 #endif
 
-#include "wx/dcmemory.h"
 #include "wx/region.h"
 #include "wx/toplevel.h"
 #include "wx/settings.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 ;