]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/gizmos/splittree.cpp
implement wxColourDialog::Move() (patch 548048)
[wxWidgets.git] / 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);