From 00bf9aa88c62d5dd42b5b2327304c4d7a4928615 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Thu, 3 Mar 2011 17:05:12 +0100 Subject: [PATCH] Fall back to Item#bounds if the Item doesn't have Item#strokeBounds in Item#draw. --- src/item/Item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/item/Item.js b/src/item/Item.js index 469c4c42..27b361b5 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -726,7 +726,7 @@ var Item = Base.extend({ if (item.blendMode !== 'normal' || item.opacity < 1 && !(item.segments && (!item.fillColor || !item.strokeColor))) { - var bounds = item.strokeBounds; + var bounds = item.strokeBounds || item.bounds; if (!bounds.width || !bounds.height) return;