From 247194a3ae50155dfbd5c1cbb5e36e4a25f85e24 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 28 Feb 2002 18:00:33 +0000 Subject: [PATCH] Added a test for lastH.IsOk() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/src/gizmos/splittree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/src/gizmos/splittree.cpp b/contrib/src/gizmos/splittree.cpp index 9dce1f306e..346659cf30 100644 --- a/contrib/src/gizmos/splittree.cpp +++ b/contrib/src/gizmos/splittree.cpp @@ -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); -- 2.50.0