fix redundant storage of current date both in wxCalendarCtrl (which was itself redundantly stored as both wxDatePickerCtrl::m_cal and m_popup) and popup m_currentDate variable which resulted in multiple bugs, e.g. calendar didn't open at the current date value

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-02-16 15:39:06 +00:00
parent 7c16b7cc5d
commit 2fda1fe5fd
2 changed files with 37 additions and 37 deletions

View File

@@ -59,7 +59,7 @@ public:
// extra methods available only in this (generic) implementation
bool SetFormat(const wxString& fmt);
wxCalendarCtrl *GetCalendar() const { return m_cal; }
wxCalendarCtrl *GetCalendar() const;
// implementation only from now on
@@ -78,7 +78,6 @@ private:
void OnSize(wxSizeEvent& event);
void OnFocus(wxFocusEvent& event);
wxCalendarCtrl *m_cal;
wxComboCtrl* m_combo;
wxCalendarComboPopup* m_popup;