From ef419e3b4550534df66e25c034a9babbcef54b92 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 24 Oct 2006 17:38:02 +0000 Subject: [PATCH] Fix incorrect comparison git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/dcbase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/dcbase.cpp b/src/common/dcbase.cpp index 9d51a61469..08d7d49e2b 100644 --- a/src/common/dcbase.cpp +++ b/src/common/dcbase.cpp @@ -330,7 +330,7 @@ void wxDCBase::DoDrawSpline( wxList *points ) double x1, y1, x2, y2; wxList::compatibility_iterator node = points->GetFirst(); - if (node == wxList::compatibility_iterator()) + if (!node) // empty list return; -- 2.50.0