Return when no selected element to ungroup

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2837 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Brett Zamir 2014-05-08 03:14:59 +00:00
parent 4bb15e0fb6
commit 35e171a15f
1 changed files with 3 additions and 0 deletions

View File

@ -7236,6 +7236,9 @@ var pushGroupProperties = this.pushGroupProperties = function(g, undoable) {
// significant recalculations to apply group's transforms, etc to its children // significant recalculations to apply group's transforms, etc to its children
this.ungroupSelectedElement = function() { this.ungroupSelectedElement = function() {
var g = selectedElements[0]; var g = selectedElements[0];
if (!g) {
return;
}
if ($(g).data('gsvg') || $(g).data('symbol')) { if ($(g).data('gsvg') || $(g).data('symbol')) {
// Is svg, so actually convert to group // Is svg, so actually convert to group
convertToGroup(g); convertToGroup(g);