]> git.saurik.com Git - wxWidgets.git/commitdiff
Added a test for lastH.IsOk()
authorJulian Smart <julian@anthemion.co.uk>
Thu, 28 Feb 2002 18:00:33 +0000 (18:00 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 28 Feb 2002 18:00:33 +0000 (18:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/src/gizmos/splittree.cpp

index 9dce1f306e7890a19370e5c0593f913a5f7c62f8..346659cf3055d459fe9fdca759f619ce161a7890 100644 (file)
@@ -282,7 +282,7 @@ void wxRemotelyScrolledTreeCtrl::OnPaint(wxPaintEvent& event)
             lastH = h;
         }
     }
-    if (GetBoundingRect(lastH, itemRect))
+    if (lastH.IsOk() && GetBoundingRect(lastH, itemRect))
     {
         cy = itemRect.GetBottom();
         dc.DrawLine(0, cy, clientSize.x, cy);