1
0
Fork 0

SVG parser: Add num() wrapper for <rect> attributes.

This commit is contained in:
Tomash Brechko 2013-11-28 15:47:35 +04:00 committed by Thomas Geymayer
parent a9576e8c8d
commit 2e6ba5f8c0

View file

@ -413,9 +413,9 @@ var parsesvg = func(group, path, options = nil)
var cfg = {};
if( rx != nil )
cfg["border-radius"] = [rx, ry];
cfg["border-radius"] = [num(rx), num(ry)];
stack[-1].rect(x, y, width, height, cfg);
stack[-1].rect(num(x), num(y), num(width), num(height), cfg);
}
else
parsePath(attr['d']);