Fix the issue that preserveAspectRatio default value, now it's YES

This commit is contained in:
DreamPiggy 2020-01-10 19:46:37 +08:00
parent 767ea25525
commit 2e629f6c46
2 changed files with 5 additions and 5 deletions

View File

@ -228,7 +228,7 @@
#endif
}
BOOL preserveAspectRatio = NO;
BOOL preserveAspectRatio = YES;
NSNumber *preserveAspectRatioValue = options[SDImageCoderDecodePreserveAspectRatio];
if (preserveAspectRatioValue != nil) {
preserveAspectRatio = preserveAspectRatioValue.boolValue;
@ -310,7 +310,7 @@
#endif
}
_thumbnailSize = thumbnailSize;
BOOL preserveAspectRatio = NO;
BOOL preserveAspectRatio = YES;
NSNumber *preserveAspectRatioValue = options[SDImageCoderDecodePreserveAspectRatio];
if (preserveAspectRatioValue != nil) {
preserveAspectRatio = preserveAspectRatioValue.boolValue;
@ -464,7 +464,7 @@
#endif
}
_thumbnailSize = thumbnailSize;
BOOL preserveAspectRatio = NO;
BOOL preserveAspectRatio = YES;
NSNumber *preserveAspectRatioValue = options[SDImageCoderDecodePreserveAspectRatio];
if (preserveAspectRatioValue != nil) {
preserveAspectRatio = preserveAspectRatioValue.boolValue;

View File

@ -87,7 +87,7 @@
#endif
}
BOOL preserveAspectRatio = NO;
BOOL preserveAspectRatio = YES;
NSNumber *preserveAspectRatioValue = options[SDImageCoderDecodePreserveAspectRatio];
if (preserveAspectRatioValue != nil) {
preserveAspectRatio = preserveAspectRatioValue.boolValue;
@ -134,7 +134,7 @@
#endif
}
_thumbnailSize = thumbnailSize;
BOOL preserveAspectRatio = NO;
BOOL preserveAspectRatio = YES;
NSNumber *preserveAspectRatioValue = options[SDImageCoderDecodePreserveAspectRatio];
if (preserveAspectRatioValue != nil) {
preserveAspectRatio = preserveAspectRatioValue.boolValue;