fixed bug in wxCalendarCtrl (132199) and bug in wxDateTime::IsSameDate() this fix discovered
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9368 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -480,7 +480,7 @@ wxSize wxCalendarCtrl::DoGetBestSize() const
|
||||
if ( GetWindowStyle() & (wxRAISED_BORDER | wxSUNKEN_BORDER) )
|
||||
{
|
||||
// the border would clip the last line otherwise
|
||||
height += 4;
|
||||
height += 6;
|
||||
}
|
||||
|
||||
return wxSize(width, height);
|
||||
@@ -648,7 +648,7 @@ void wxCalendarCtrl::OnPaint(wxPaintEvent& WXUNUSED(event))
|
||||
|
||||
wxCalendarDateAttr *attr = m_attrs[day - 1];
|
||||
|
||||
bool isSel = m_date == date;
|
||||
bool isSel = date.IsSameDate(m_date);
|
||||
if ( isSel )
|
||||
{
|
||||
dc.SetTextForeground(m_colHighlightFg);
|
||||
|
Reference in New Issue
Block a user