Return when no selected element to ungroup
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2837 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
4bb15e0fb6
commit
35e171a15f
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue