Fix error in findDefs()
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2392 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
746499f637
commit
ed4e7e9ec6
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue