Update parser.js

This was missing.
Now if width and height get parse correctly.
They were even before but if it was  width 18pt ( so 18 * 1.33 pixels ) and wievbox was 18, before no scaling was calculated.
This commit is contained in:
Andrea Bogazzi 2014-08-07 16:23:09 +02:00
parent 8d6f7addec
commit ea942e3580

View file

@ -510,8 +510,8 @@
parseUseDirectives(doc);
var viewBoxAttr = doc.getAttribute('viewBox'),
widthAttr = parseFloat(doc.getAttribute('width')),
heightAttr = parseFloat(doc.getAttribute('height')),
widthAttr = parseUnit(doc.getAttribute('width')),
heightAttr = parseUnit(doc.getAttribute('height')),
viewBoxWidth,
viewBoxHeight;