]> git.saurik.com Git - wxWidgets.git/commitdiff
Assert correction.
authorWłodzimierz Skiba <abx@abx.art.pl>
Fri, 16 Sep 2005 14:53:39 +0000 (14:53 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Fri, 16 Sep 2005 14:53:39 +0000 (14:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/dc.cpp

index f126f133d243f27421a5f20f66d82dadc16678c3..f9deb018d6b1bd798bbc20d4787ec8d7321d136c 100644 (file)
@@ -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));