From 9869c26285dc51d13607cddaa04f65ce983653a5 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 6 Aug 2013 13:05:36 +0000 Subject: [PATCH] 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 --- src/propgrid/property.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/propgrid/property.cpp b/src/propgrid/property.cpp index a7b65da..bafa791 100644 --- a/src/propgrid/property.cpp +++ b/src/propgrid/property.cpp @@ -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; -- 2.7.4