From 4fcb908ad5b667bc8544db555834283f6704a5b9 Mon Sep 17 00:00:00 2001 From: DD Date: Fri, 20 Oct 2017 14:54:21 -0400 Subject: [PATCH] Fix another issue caused by undo causing layers to be selected --- src/helper/selection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helper/selection.js b/src/helper/selection.js index 5fbe0f96..7c810559 100644 --- a/src/helper/selection.js +++ b/src/helper/selection.js @@ -151,7 +151,7 @@ const getSelectedLeafItems = function () { for (let i = 0; i < allItems.length; i++) { const item = allItems[i]; - if (!isGroup(item) && item.data && !item.data.isSelectionBound) { + if (!(item instanceof paper.Layer) && !isGroup(item) && item.data && !item.data.isSelectionBound) { items.push(item); } }