Skip to content

Commit

Permalink
Fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Adlai-Holler committed May 2, 2019
1 parent d4384b3 commit 92af17d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Details/ASGraphicsContext.mm
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ NS_INLINE void ASConfigureExtendedRange(UIGraphicsImageRendererFormat *format)
UIGraphicsBeginImageContextWithOptions(size, opaque, scale);
work();
UIImage *image = nil;
if (isCancelled && !isCancelled()) {
if (isCancelled == nil || !isCancelled()) {
image = UIGraphicsGetImageFromCurrentImageContext();
}
UIGraphicsEndImageContext();
Expand Down

0 comments on commit 92af17d

Please sign in to comment.