Skip to content

AssertionError when calling setInitialSelection with minWidth/minHeight #33

Description

@timoetzold

When setting the initialSelection with width of MIN_WIDTH or height of MIN_HEIGHT an exception gets thrown by GWT, as the value of "-1" will not be replaced.

Suggestion for com.google.code.gwt.crop.client.GWTCropper#setInitialSelection(int, int, int, int, boolean):

if (width >= MIN_WIDTH) 
  this.nInnerWidth = width;

if (height >= MIN_HEIGHT)
  this.nInnerHeight = height;

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