Fall back to Item#bounds if the Item doesn't have Item#strokeBounds in Item#draw.

This commit is contained in:
Jonathan Puckey 2011-03-03 17:05:12 +01:00
parent 02943c4190
commit 00bf9aa88c

View file

@ -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;