Merge pull request #3760 from lukmccall/patch-1
Fix `sd_imageFormat` sometimes returns `undefined`
This commit is contained in:
commit
780aa6db62
|
@ -182,6 +182,8 @@ static CGFloat SDImageScaleFromPath(NSString *string) {
|
||||||
#else
|
#else
|
||||||
self = [super initWithCGImage:image.CGImage scale:MAX(scale, 1) orientation:image.imageOrientation];
|
self = [super initWithCGImage:image.CGImage scale:MAX(scale, 1) orientation:image.imageOrientation];
|
||||||
#endif
|
#endif
|
||||||
|
// Defines the associated object that holds the format for static images
|
||||||
|
super.sd_imageFormat = format;
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -374,10 +376,6 @@ static CGFloat SDImageScaleFromPath(NSString *string) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setSd_imageFormat:(SDImageFormat)sd_imageFormat {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (BOOL)sd_isVector {
|
- (BOOL)sd_isVector {
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue