]> git.saurik.com Git - wxWidgets.git/commitdiff
Need to ensure that the right background is explicitly set.
authorRobin Dunn <robin@alldunn.com>
Wed, 30 Jun 2004 22:00:45 +0000 (22:00 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 30 Jun 2004 22:00:45 +0000 (22:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/calctrl.cpp

index e18a64a0314a6d2823ca034c6bb72c81a4b51be9..63e627152071311e0847658ea63abe7eedb17cd7 100644 (file)
@@ -312,7 +312,11 @@ bool wxCalendarCtrl::Create(wxWindow *parent,
     // above it
     SetBestSize(size);
     SetPosition(pos);
-        
+
+    // Since we don't paint the whole background make sure that the platform
+    // will use the right one.
+    SetBackgroundColour(GetBackgroundColour());
+    
     SetHolidayAttrs();
 
     return true;