1
0
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:
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
+6
View File
@@ -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