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': case 'viewBox':
var values = convertStringTo(value, 'array'), var values = convertStringTo(value, 'array'),
rectangle = Rectangle.create.apply(this, values); 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: default:
// Not supported yet. // Not supported yet.
break; break;