From 136fe67917d3ba08a349b809b38a4a0a571da4dd Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Thu, 3 Mar 2011 02:25:09 +0100 Subject: [PATCH] Small change to CanvasDraw. --- src/util/CanvasDraw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/CanvasDraw.js b/src/util/CanvasDraw.js index 391c483e..3c2774a1 100644 --- a/src/util/CanvasDraw.js +++ b/src/util/CanvasDraw.js @@ -18,7 +18,7 @@ new function() { && !(item.segments && (!item.fillColor || !item.strokeColor)) ) { var bounds = item.strokeBounds; - if (!item.bounds.width || !item.bounds.height) + if (!bounds.width || !bounds.height) return; // Floor the offset and ceil the size, so we don't cut off any