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;