mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +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
@@ -750,5 +750,11 @@ TEST(Drawing, putText_no_garbage)
|
||||
}
|
||||
|
||||
|
||||
TEST(Drawing, line)
|
||||
{
|
||||
Mat mat = Mat::zeros(Size(100,100), CV_8UC1);
|
||||
|
||||
ASSERT_THROW(line(mat, Point(1,1),Point(99,99),Scalar(255),0), cv::Exception);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user