]> git.saurik.com Git - wxWidgets.git/commitdiff
fixing iterator comparison
authorStefan Csomor <csomor@advancedconcepts.ch>
Sat, 1 Jan 2011 11:06:16 +0000 (11:06 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sat, 1 Jan 2011 11:06:16 +0000 (11:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dcgraph.cpp

index 9206732e715a1a4312ba7dbf29fea1580d073ed7..9a48f94a7583d368459178da312c3475fb82a63a 100644 (file)
@@ -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;