From: Robin Dunn Date: Wed, 30 Jun 2004 22:00:45 +0000 (+0000) Subject: Need to ensure that the right background is explicitly set. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/85fab316d678c5907ca4a64697366c735cdbd976?ds=inline Need to ensure that the right background is explicitly set. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/calctrl.cpp b/src/generic/calctrl.cpp index e18a64a031..63e6271520 100644 --- a/src/generic/calctrl.cpp +++ b/src/generic/calctrl.cpp @@ -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;