fixed problem when xml tag in svg file is missing.
This commit is contained in:
parent
3bbdd702db
commit
25be52587e
1 changed files with 5 additions and 1 deletions
|
|
@ -236,7 +236,11 @@ $(function(){
|
|||
var url = self._getSVGserveUrl(file);
|
||||
callback = function (f) {
|
||||
var newSvgAttrs = {};
|
||||
var root_attrs = f.select('svg').node.attributes;
|
||||
if(f.select('svg') == null){
|
||||
root_attrs = f.node.attributes;
|
||||
} else {
|
||||
var root_attrs = f.select('svg').node.attributes;
|
||||
}
|
||||
var doc_width = null;
|
||||
var doc_height = null;
|
||||
var doc_viewbox = null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue