Crop Region Overreaches Buffer
Closed this issue · 1 comments
mattrussmill commented
When dragging the selected cropped region before dropping (Transform Operation) if the mouse is released when the region is overlapping the bottom or right of the image the following error is thrown.
OpenCV Error: Assertion failed (0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows) in Mat, file E:\opencv\win3.3.1\opencv\sources\modules\core\src\matrix.cpp, line 538
mattrussmill commented
To fix, set check for this in Transform Menu instead of Signalling all the way through from MainWindow. Check is already written for textbox fields.