From 629be19bf39de8c5fe10b107e4f554c1919bbe03 Mon Sep 17 00:00:00 2001 From: Curtis Hard Date: Tue, 6 Dec 2016 21:51:25 +0000 Subject: [PATCH] Checks for zero size image, if so, doesnt bother rendering --- source/IJSVGImage.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/IJSVGImage.m b/source/IJSVGImage.m index 0e179dd..4d4d300 100644 --- a/source/IJSVGImage.m +++ b/source/IJSVGImage.m @@ -72,6 +72,11 @@ { // run the transforms // draw the image + if(self.width == 0.f || self.height == 0.f) { + return; + } + + // make sure path is set if(path == nil) { path = [self path]; }