Commit 03a07661 authored by Felix Paul Kühne's avatar Felix Paul Kühne

Fix runtime exception

parent 5abcb21a
......@@ -302,7 +302,8 @@
CGFloat centerOffset = (imagePartWidth * i + imagePartWidth / 2) - imageSize.width / 2;
//shift the rect to draw the middle of the image in the clippingrect
CGRect drawingRect = CGRectMake(centerOffset, 0, imageSize.width, imageSize.height);
[clusterThumb drawInRect:drawingRect];
if (clusterThumb != nil)
[clusterThumb drawInRect:drawingRect];
//get rid of the old clippingRect
CGContextRestoreGState(context);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment