]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix incorrect comparison
authorJulian Smart <julian@anthemion.co.uk>
Tue, 24 Oct 2006 17:38:02 +0000 (17:38 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 24 Oct 2006 17:38:02 +0000 (17:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dcbase.cpp

index 9d51a6146962f109c100d0754a7003cf24bbaa8e..08d7d49e2b6ee9243c9b830101e2021aa8b296c5 100644 (file)
@@ -330,7 +330,7 @@ void wxDCBase::DoDrawSpline( wxList *points )
     double           x1, y1, x2, y2;
 
     wxList::compatibility_iterator node = points->GetFirst();
     double           x1, y1, x2, y2;
 
     wxList::compatibility_iterator node = points->GetFirst();
-    if (node == wxList::compatibility_iterator())
+    if (!node)
         // empty list
         return;
 
         // empty list
         return;