SVG Importer: ignore viewBox for svg element for now.

This commit is contained in:
Jonathan Puckey 2012-11-08 17:48:21 +01:00
parent a1e38ee52e
commit 485bc83b65

View file

@ -434,7 +434,9 @@ new function() {
case 'viewBox':
var values = convertStringTo(value, 'array'),
rectangle = Rectangle.create.apply(this, values);
(item.getDefinition ? item.getDefinition() : item).setBounds(rectangle);
// TODO: how to deal with the svg element?
if (!name == 'svg')
(item.getDefinition ? item.getDefinition() : item).setBounds(rectangle);
default:
// Not supported yet.
break;