]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/slider.cpp
correcting a missing redraw area on certain resize operations when window has a border
[wxWidgets.git] / src / gtk / slider.cpp
index 27f9bdd3936289402833a27dcf2461c8362b8dea..f3ab24213f9f949e8eda96895e50e4a8b61325c5 100644 (file)
@@ -142,8 +142,7 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID id,
     m_parent->DoAddChild( this );
 
     PostCreation();
-
-    SetBackgroundColour( parent->GetBackgroundColour() );
+    InheritAttributes();
 
     Show( TRUE );