1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

Merge pull request #10732 from Riyuzakii:10598

* Introduces error throw for line drawn with THICKNESS=0
This commit is contained in:
Aditya Rohan
2018-02-01 17:51:00 +05:30
committed by Alexander Alekhin
parent 9698b93d10
commit ccea0a831a
3 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -1814,7 +1814,7 @@ void line( InputOutputArray _img, Point pt1, Point pt2, const Scalar& color,
if( line_type == CV_AA && img.depth() != CV_8U )
line_type = 8;
CV_Assert( 0 <= thickness && thickness <= MAX_THICKNESS );
CV_Assert( 0 < thickness && thickness <= MAX_THICKNESS );
CV_Assert( 0 <= shift && shift <= XY_SHIFT );
double buf[4];