Don't choke on NULL pointer passed into wxRadioBox::GetSize.

Take the inverted coordinate system into account when computing size.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@27068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis
2004-05-02 17:07:47 +00:00
parent 1e3bec1495
commit 491a17e855

View File

@@ -857,8 +857,10 @@ void wxRadioBox::GetSize(
,&vRect
);
*pnWidth = vRect.xRight - vRect.xLeft;
*pnHeight = vRect.yBottom - vRect.yTop;
if (pnWidth)
*pnWidth = vRect.xRight - vRect.xLeft;
if (pnHeight)
*pnHeight = vRect.yTop - vRect.yBottom;
} // end of wxRadioBox::GetSize
// Find string for position