]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/treectlg.cpp
removed carbon printing code
[wxWidgets.git] / src / generic / treectlg.cpp
index f0be2d87232f673442e02b2739abd069a3031cb6..f2134ffc897536ca1db819768e4ab91fa6096390 100644 (file)
@@ -1884,7 +1884,7 @@ void wxGenericTreeCtrl::EnsureVisible(const wxTreeItemId& item)
 
     if ( HasFlag(wxTR_HIDE_ROOT) )
     {
-        while ( parent != m_anchor )
+        while ( parent && parent != m_anchor )
         {
             Expand(parent);
             parent = parent->GetParent();