]> git.saurik.com Git - wxWidgets.git/commitdiff
avoid assert when creating the control with wxCAL_SEQUENTIAL_MONTH_SELECTION style...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 19 Nov 2006 15:11:24 +0000 (15:11 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 19 Nov 2006 15:11:24 +0000 (15:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/calctrl.cpp

index f10b5015ca6b8adb38648b18d4fd987a06e927d8..1b4e84226fbe88cc7d946f28964c98d16a26e02d 100644 (file)
@@ -202,6 +202,9 @@ bool wxCalendarCtrl::Create(wxWindow *parent,
                             long style,
                             const wxString& name)
 {
+    // set the style first to avoid assert in our SetWindowStyleFlag()
+    m_windowStyle = style;
+
     if ( !wxControl::Create(parent, id, pos, size,
                             style | wxCLIP_CHILDREN | wxWANTS_CHARS | wxFULL_REPAINT_ON_RESIZE,
                             wxDefaultValidator, name) )