]> git.saurik.com Git - wxWidgets.git/blobdiff - src/propgrid/property.cpp
Somehow, setting a tint color makes gauge work :/.
[wxWidgets.git] / src / propgrid / property.cpp
index ceaba28ae3f92e6da1d96a0d400e365d94c192be..bafa791fc48f0383369fece897d4270cba8aeeb7 100644 (file)
@@ -4,7 +4,6 @@
 // Author:      Jaakko Salli
 // Modified by:
 // Created:     2008-08-23
-// RCS-ID:      $Id$
 // Copyright:   (c) Jaakko Salli
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
@@ -2199,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;