From 490b762441174e5f5f37a52e263b8dc688a2a5d5 Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Tue, 29 Sep 2009 18:00:14 +0000 Subject: [PATCH] Also, find all orphaned group elements too git-svn-id: http://svg-edit.googlecode.com/svn/trunk@735 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index d829384b..17b960c7 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -2897,7 +2897,12 @@ function BatchCommand(text) { current_layer = child; walkTree(child, function(e){e.setAttribute("style", "pointer-events:none");}); } + // if group did not have a name, it is an orphan + else { + orphans.push(child); + } } + // if child has a bbox (i.e. not a element), then it is an orphan else if(child.getBBox) { orphans.push(child); }