Added a test for lastH.IsOk()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2002-02-28 18:00:33 +00:00
parent 5ae7602641
commit 247194a3ae

View 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);