Also, find all orphaned group elements too

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@735 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Jeff Schiller 2009-09-29 18:00:14 +00:00
parent d11818bec0
commit 490b762441
1 changed files with 5 additions and 0 deletions

View File

@ -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 <title> element), then it is an orphan
else if(child.getBBox) {
orphans.push(child);
}