]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wincmn.cpp
falling back to wxImage handler
[wxWidgets.git] / src / common / wincmn.cpp
index 546182a21269cbc4663260a1aeb5d6b62157eb0d..0c2192810bd140fa30c69eccd3b74ce65fd0d185 100644 (file)
@@ -983,8 +983,15 @@ void wxWindowBase::InheritAttributes()
         if ( parent->m_inheritFgCol && !m_hasFgCol )
             SetForegroundColour(parent->GetForegroundColour());
 
+        // inheriting (solid) background colour is wrong as it totally breaks
+        // any kind of themed backgrounds
+        //
+        // instead, the controls should use the same background as their parent
+        // (ideally by not drawing it at all)
+#if 0
         if ( parent->m_inheritBgCol && !m_hasBgCol )
             SetBackgroundColour(parent->GetBackgroundColour());
+#endif // 0
     }
 }