Fixed a crash when GetMonthControl returns NULL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user