Skip to content

Commit 8202965

Browse files
committed
Fix drawing of selected bounds for Path.
1 parent 0d98727 commit 8202965

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/project/Project.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,10 @@ var Project = this.Project = PaperScopeItem.extend(/** @lends Project# */{
324324
if (item.drawSelected)
325325
item.drawSelected(ctx, mx);
326326
if (item._boundsSelected)
327-
Item.drawSelectedBounds(item._getBounds(), ctx, mx);
327+
// We need to call the internal _getBounds, to get non-
328+
// transformed bounds.
329+
Item.drawSelectedBounds(item._getBounds('getBounds'),
330+
ctx, mx);
328331
}
329332
}
330333
ctx.restore();

0 commit comments

Comments
 (0)