Skip to content

Fixed cropping bug

Sebastien Binet requested to merge ctessum:drawNew into master

Created by: ctessum

There is an issue with the draw.Canvas.Crop() function. I've added a test to document it. The test does cropping two different ways, the rectangles of which should be the same, and produces two output images that should also be the same. In the current version the two methods yield different results. The change that I made fixes this bug.

Merge request reports