From ed4e7e9ec624a39f9d7b48afce86e7f226541d3d Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Thu, 14 Feb 2013 19:11:30 +0000 Subject: [PATCH] Fix error in findDefs() git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2392 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgutils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/svgutils.js b/editor/svgutils.js index d8a468c4..635756f9 100644 --- a/editor/svgutils.js +++ b/editor/svgutils.js @@ -312,7 +312,7 @@ svgedit.utilities.setHref = function(elem, val) { // Returns: // The document's element, create it first if necessary svgedit.utilities.findDefs = function() { - var svgElement = editorContext_.getSVGContent().documentElement; + var svgElement = editorContext_.getSVGContent(); var defs = svgElement.getElementsByTagNameNS(SVGNS, "defs"); if (defs.length > 0) { defs = defs[0];