Fix wxPropertyGrid::GetPropertyRect when the last item is collapsed.

Return the real height instead of -1.

Closes #15367.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2013-08-06 13:05:36 +00:00
parent 09d3b6944e
commit 9869c26285

View File

@ -2198,7 +2198,7 @@ int wxPGProperty::GetY2( int lh ) const
for ( parent = GetParent(); parent != NULL; parent = child->GetParent() )
{
if ( !parent->IsExpanded() )
return -1;
return parent->GetY2(lh);
y += parent->GetChildrenHeight(lh, child->GetIndexInParent());
y += lh;
child = parent;