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:
committed by
Alexander Alekhin
parent
9698b93d10
commit
ccea0a831a
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user