]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dcbase.cpp
added MSWGetDefaultBgBrush() to allow some derived classes to use transparent brush...
[wxWidgets.git] / src / common / dcbase.cpp
index 10c928e505c681fa176609d038e94e9560a5bfd2..fadb078d01ba56eaa8703cbc3436937a31aeb167 100644 (file)
@@ -316,6 +316,10 @@ void wxDCBase::DoDrawSpline( wxList *points )
     double           x1, y1, x2, y2;
 
     wxList::compatibility_iterator node = points->GetFirst();
+    if (node == NULL)
+        // empty list
+        return;
+    
     p = (wxPoint *)node->GetData();
 
     x1 = p->x;