From 42877933f62e1d1d1e83a00616c646d2b4ffa80e Mon Sep 17 00:00:00 2001 From: Andrew Stephan Date: Fri, 28 Mar 2014 00:10:10 -0400 Subject: [PATCH] Remove unnecessary and trouble causing MINs. #3 --- src/ios/SOSPicker.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ios/SOSPicker.m b/src/ios/SOSPicker.m index 2a4a59e..ccdf928 100644 --- a/src/ios/SOSPicker.m +++ b/src/ios/SOSPicker.m @@ -121,15 +121,15 @@ // opposite comparison to imageByScalingAndCroppingForSize in order to contain the image within the given bounds if (widthFactor == 0.0) { - scaleFactor = heightFactor; + scaleFactor = heightFactor; } else if (heightFactor == 0.0) { - scaleFactor = widthFactor; + scaleFactor = widthFactor; } else if (widthFactor > heightFactor) { scaleFactor = heightFactor; // scale to fit height } else { scaleFactor = widthFactor; // scale to fit width } - scaledSize = CGSizeMake(MIN(width * scaleFactor, targetWidth), MIN(height * scaleFactor, targetHeight)); + scaledSize = CGSizeMake(width * scaleFactor, height * scaleFactor); } UIGraphicsBeginImageContext(scaledSize); // this will resize