SVG parser: Add num() wrapper for <rect> attributes.
This commit is contained in:
parent
a9576e8c8d
commit
2e6ba5f8c0
1 changed files with 2 additions and 2 deletions
|
@ -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']);
|
||||
|
|
Loading…
Reference in a new issue