Fix drawing of selected bounds for Path.

This commit is contained in:
Jürg Lehni 2013-02-24 16:26:46 -08:00
parent 0d98727328
commit 82029652c8

View file

@ -324,7 +324,10 @@ var Project = this.Project = PaperScopeItem.extend(/** @lends Project# */{
if (item.drawSelected) if (item.drawSelected)
item.drawSelected(ctx, mx); item.drawSelected(ctx, mx);
if (item._boundsSelected) if (item._boundsSelected)
Item.drawSelectedBounds(item._getBounds(), ctx, mx); // We need to call the internal _getBounds, to get non-
// transformed bounds.
Item.drawSelectedBounds(item._getBounds('getBounds'),
ctx, mx);
} }
} }
ctx.restore(); ctx.restore();