Better fix for edit photo exception
This commit is contained in:
parent
27fc1c58dd
commit
271af4e9a2
|
@ -241,10 +241,6 @@ func ParseCropCoords(coords string) []int {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// If either the width or height would be zero, the coords aren't valid.
|
|
||||||
if len(coords) == 4 && coords[2] == 0 || coords[3] == 0 {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return crop
|
return crop
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user