fixed #2130
authorMarina Kolpakova <no@email>
Thu, 5 Jul 2012 20:55:55 +0000 (20:55 +0000)
committerMarina Kolpakova <no@email>
Thu, 5 Jul 2012 20:55:55 +0000 (20:55 +0000)
modules/core/include/opencv2/core/core.hpp
modules/core/src/drawing.cpp

index dbcae0b..42ab6a1 100644 (file)
@@ -2539,7 +2539,7 @@ CV_EXPORTS_W void fillPoly(InputOutputArray img, InputArrayOfArrays pts,
                            Point offset=Point() );
 
 //! draws one or more polygonal curves
-CV_EXPORTS void polylines(Mat& img, const Point** pts, const int* npts,
+CV_EXPORTS void polylines(Mat& img, const Point* const* pts, const int* npts,
                           int ncontours, bool isClosed, const Scalar& color,
                           int thickness=1, int lineType=8, int shift=0 );
 
index c48b048..50e51fb 100644 (file)
@@ -1730,7 +1730,7 @@ void fillPoly( Mat& img, const Point** pts, const int* npts, int ncontours,
 }
 
 
-void polylines( Mat& img, const Point** pts, const int* npts, int ncontours, bool isClosed,
+void polylines( Mat& img, const Point* const* pts, const int* npts, int ncontours, bool isClosed,
                 const Scalar& color, int thickness, int line_type, int shift )
 {
     if( line_type == CV_AA && img.depth() != CV_8U )