Fix error in findDefs()

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2392 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Jeff Schiller 2013-02-14 19:11:30 +00:00
parent 746499f637
commit ed4e7e9ec6
1 changed files with 1 additions and 1 deletions

View File

@ -312,7 +312,7 @@ svgedit.utilities.setHref = function(elem, val) {
// Returns:
// The document's <defs> 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];