]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/calctrl.cpp
relayout the window after adding/removing the columns (fixes a SF bug I closed a...
[wxWidgets.git] / src / generic / calctrl.cpp
index 810fa252f57e0fbd3cc4b21385b46dc423133ca6..dd81cba7fee7c65a8b9732f805bea0a5a198d2c4 100644 (file)
@@ -768,7 +768,7 @@ void wxCalendarCtrl::DoGetSize(int *width, int *height) const
     if ( !(GetWindowStyle() & wxCAL_SEQUENTIAL_MONTH_SELECTION) )
     {
         // our real height is bigger
-        if ( height )
+        if ( height && GetMonthControl())
         {
             *height += GetMonthControl()->GetSize().y + VERT_MARGIN;
         }