From: Włodzimierz Skiba <abx@abx.art.pl>
Date: Fri, 16 Sep 2005 14:53:39 +0000 (+0000)
Subject: Assert correction.
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/60e193718ccf6780252740d4c6b08be1317e755e

Assert correction.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/src/msw/dc.cpp b/src/msw/dc.cpp
index f126f133d2..f9deb018d6 100644
--- a/src/msw/dc.cpp
+++ b/src/msw/dc.cpp
@@ -1003,7 +1003,7 @@ void wxDC::DoDrawSpline(wxList *points)
     wxASSERT_MSG( points, wxT("NULL pointer to spline points?") );
 
     const size_t n_points = points->GetCount();
-    wxASSERT_MSG( n > 2 , wxT("incomplete list of spline points?") );
+    wxASSERT_MSG( n_points > 2 , wxT("incomplete list of spline points?") );
 
     const size_t n_bezier_points = n_points * 3 + 1;
     POINT *lppt = (POINT *)malloc(n_bezier_points*sizeof(POINT));