]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied patch [ 733425 ] Fix for header rendering problem in CalCtrl
authorJulian Smart <julian@anthemion.co.uk>
Sun, 1 Jun 2003 13:39:30 +0000 (13:39 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 1 Jun 2003 13:39:30 +0000 (13:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/calctrl.cpp

index 161b50ad26b86834e0e6953cc6c78c4b6675123f..084b32340ba32d8f7e8c992aebf45f7f1ea16c7e 100644 (file)
@@ -895,7 +895,7 @@ void wxCalendarCtrl::OnPaint(wxPaintEvent& WXUNUSED(event))
         dc.SetTextForeground(*wxBLACK);
         dc.SetBrush(wxBrush(m_colHeaderBg, wxSOLID));
         dc.SetPen(wxPen(m_colHeaderBg, 1, wxSOLID));
-        dc.DrawRectangle(0, y, 7*m_widthCol, m_heightRow);
+        dc.DrawRectangle(0, y, GetClientSize().x, m_heightRow);
 
         // Get extent of month-name + year
         wxCoord monthw, monthh;