]> git.saurik.com Git - wxWidgets.git/blobdiff - src/propgrid/property.cpp
Add a few missing appearance screenshots for the manual.
[wxWidgets.git] / src / propgrid / property.cpp
index a7b65da74bc41f649f8e5317791d34545b27e43b..bafa791fc48f0383369fece897d4270cba8aeeb7 100644 (file)
@@ -2198,7 +2198,7 @@ int wxPGProperty::GetY2( int lh ) const
     for ( parent = GetParent(); parent != NULL; parent = child->GetParent() )
     {
         if ( !parent->IsExpanded() )
     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;
         y += parent->GetChildrenHeight(lh, child->GetIndexInParent());
         y += lh;
         child = parent;