diff options
Diffstat (limited to 'cxcore/src/cxdrawing.cpp')
-rw-r--r-- | cxcore/src/cxdrawing.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cxcore/src/cxdrawing.cpp b/cxcore/src/cxdrawing.cpp index ecbe22e..41d6625 100644 --- a/cxcore/src/cxdrawing.cpp +++ b/cxcore/src/cxdrawing.cpp @@ -1973,7 +1973,7 @@ cvFillPoly( void *img, CvPoint **pts, int *npts, int contours, if( !pts ) CV_ERROR( CV_StsNullPtr, "" ); - if( npts <= 0 ) + if( !npts ) CV_ERROR( CV_StsNullPtr, "" ); if( shift < 0 || XY_SHIFT < shift ) @@ -2044,7 +2044,7 @@ cvPolyLine( void *img, CvPoint **pts, int *npts, if( !pts ) CV_ERROR( CV_StsNullPtr, "" ); - if( npts <= 0 ) + if( !npts ) CV_ERROR( CV_StsNullPtr, "" ); if( shift < 0 || XY_SHIFT < shift ) |