Skip to content

Commit

Permalink
[RSKImageCropper] [RSKImageScrollView] [setImage:] Change imageSize
Browse files Browse the repository at this point in the history
… only if its current value is equal to the default `CGSizeZero` value.
  • Loading branch information
ruslanskorb committed Nov 29, 2024
1 parent 2a1b48f commit 9520771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RSKImageCropper/RSKImageScrollView.m
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ - (void)setImage:(UIImage *)image
{
_imageView.image = image;

if (!CGSizeEqualToSize(_imageSize, image.size)) {
if (CGSizeEqualToSize(_imageSize, CGSizeZero)) {
self.imageSize = image.size;
}
}
Expand Down

0 comments on commit 9520771

Please sign in to comment.