]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed bug: splitter was not drawn for nested categories
authorJaakko Salli <jaakko.salli@dnainternet.net>
Sun, 18 Jan 2009 08:20:04 +0000 (08:20 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Sun, 18 Jan 2009 08:20:04 +0000 (08:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58190 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/propgrid/propgrid.cpp

index 237158f0bbadf7053601b54535d97642b68deea6..ee3e8c02021994f783cf1cdfc85f101030888381 100644 (file)
@@ -1914,7 +1914,8 @@ int wxPropertyGrid::DoDrawItems( wxDC& dc,
 
             unsigned int ci;
             int cellX = x + 1;
-            int nextCellWidth = state->m_colWidths[0];
+            int nextCellWidth = state->m_colWidths[0] -
+                                (greyDepthX - m_marginWidth);
             wxRect cellRect(greyDepthX+1, y, 0, rowHeight-1);
             int textXAdd = textMarginHere - greyDepthX;