]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/treectrl.cpp
regenerated using tmake to add fldlgcmn.cpp
[wxWidgets.git] / src / msw / treectrl.cpp
index bfe95ab1f7d8a8825ab5d18a2a4c74d9de3a3a68..5dcb0867c0c8e4c112dedaae6107c402c21efa02 100644 (file)
@@ -1921,6 +1921,13 @@ bool wxTreeCtrl::GetBoundingRect(const wxTreeItemId& item,
                                  bool textOnly) const
 {
     RECT rc;
+
+    // Virtual root items have no bounding rectangle
+    if ( IS_VIRTUAL_ROOT(item) )
+    {
+        return false;
+    }
+
     if ( TreeView_GetItemRect(GetHwnd(), HITEM(item),
                               &rc, textOnly) )
     {