mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
svg_loader: image tag: force size equal to the viewbox (#603)
* svg_loader: image tag: force size equal to the viewbox For some svg files it is needed to force size equal the viewbox for proper scaling * svg_loader: image tag: force size equal to the viewbox fix #1
This commit is contained in:
parent
f9d5c8b42d
commit
b89abde7cb
1 changed files with 0 additions and 1 deletions
|
@ -448,7 +448,6 @@ static unique_ptr<Picture> _imageBuildHelper(SvgNode* node, float vx, float vy,
|
|||
}
|
||||
|
||||
if (picture->load(href) != Result::Success) return nullptr;
|
||||
picture->size(node->node.image.w, node->node.image.h);
|
||||
}
|
||||
|
||||
float x, y, w, h;
|
||||
|
|
Loading…
Add table
Reference in a new issue