From 35e171a15f54757e91805a7ae3112f07656ef9a9 Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Thu, 8 May 2014 03:14:59 +0000 Subject: [PATCH] Return when no selected element to ungroup git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2837 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 14ddabbc..02be5266 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -7236,6 +7236,9 @@ var pushGroupProperties = this.pushGroupProperties = function(g, undoable) { // significant recalculations to apply group's transforms, etc to its children this.ungroupSelectedElement = function() { var g = selectedElements[0]; + if (!g) { + return; + } if ($(g).data('gsvg') || $(g).data('symbol')) { // Is svg, so actually convert to group convertToGroup(g);