Skip to content

bug infinite loop #5

@pocketal

Description

@pocketal

Hi Barrett Jacobsen

First of all, thanks for this great project, it's very helpful.
Yesterday, i have found a bug during my test. In one case there is an infinite loop, in the while loop of the function call :

  • (void)constrainCropToImage;
    I think the block who create the pb is that one :

if (CGOriginX(frame) + CGWidth(frame) > CGWidth(cropView.superview.frame)) {
........
........
}

To create this case I start my cropView to 0,0 with the max frame. Then I select the leftView and drag it slowly to the right and in one moment the program stop because of the while loop.

I have try to fixed the bug but I'm not sure.

Other question : If I want to crop the image and keep the ratio, what can I do ??

thanks a lot !!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions