From cb98e78b1e363e70d07360728c49b6dd21f36f7c Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sat, 1 Jan 2011 11:06:16 +0000 Subject: [PATCH] fixing iterator comparison git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/dcgraph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/dcgraph.cpp b/src/common/dcgraph.cpp index 9206732e71..9a48f94a75 100644 --- a/src/common/dcgraph.cpp +++ b/src/common/dcgraph.cpp @@ -677,7 +677,7 @@ void wxGCDCImpl::DoDrawSpline(const wxPointList *points) wxGraphicsPath path = m_graphicContext->CreatePath(); wxPointList::compatibility_iterator node = points->GetFirst(); - if (node == wxPointList::compatibility_iterator()) + if ( !node ) // empty list return; -- 2.45.2