Don't choke on NULL pointer passed into wxSlider::GetSize.
Take the inverted coordinate system into account when computing size. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27067 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -868,8 +868,10 @@ void wxRadioBox::GetSize(
|
|||||||
,&vRect
|
,&vRect
|
||||||
);
|
);
|
||||||
|
|
||||||
*pnWidth = vRect.xRight - vRect.xLeft;
|
if (pnWidth)
|
||||||
*pnHeight = vRect.yBottom - vRect.yTop;
|
*pnWidth = vRect.xRight - vRect.xLeft;
|
||||||
|
if (pnHeight)
|
||||||
|
*pnHeight = vRect.yTop - vRect.yBottom;
|
||||||
} // end of wxRadioBox::GetSize
|
} // end of wxRadioBox::GetSize
|
||||||
|
|
||||||
// Find string for position
|
// Find string for position
|
||||||
|
Reference in New Issue
Block a user