X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/81b6ccf12026b9e5447c1a8725c1bca3bfd14150..e28b0102bd463b8a58ceae032c88096f3922966d:/src/generic/calctrl.cpp diff --git a/src/generic/calctrl.cpp b/src/generic/calctrl.cpp index 810fa252f5..dd81cba7fe 100644 --- a/src/generic/calctrl.cpp +++ b/src/generic/calctrl.cpp @@ -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; }