X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/34138703c3997ce676a1e713d9ff9eb020640da7..9d2f3c71d83c52fc4db6c8041de533562816b1d6:/src/stubs/stattext.cpp

diff --git a/src/stubs/stattext.cpp b/src/stubs/stattext.cpp
index a1275b8bdc..3b19c7184d 100644
--- a/src/stubs/stattext.cpp
+++ b/src/stubs/stattext.cpp
@@ -32,8 +32,8 @@ bool wxStaticText::Create(wxWindow *parent, wxWindowID id,
   SetName(name);
   if (parent) parent->AddChild(this);
 
-  SetBackgroundColour(parent->GetDefaultBackgroundColour()) ;
-  SetForegroundColour(parent->GetDefaultForegroundColour()) ;
+  SetBackgroundColour(parent->GetBackgroundColour()) ;
+  SetForegroundColour(parent->GetForegroundColour()) ;
 
   if ( id == -1 )
   	m_windowId = (int)NewControlId();
@@ -42,7 +42,7 @@ bool wxStaticText::Create(wxWindow *parent, wxWindowID id,
 
   m_windowStyle = style;
 
-  SetFont(* parent->GetFont());
+  SetFont(parent->GetFont());
 
   // TODO
   return FALSE;