mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
svg_loader: <image> tag introduced fix #4
fixed mistyped vw to w and vh to h
This commit is contained in:
parent
d69805c668
commit
e01f29270a
1 changed files with 1 additions and 1 deletions
|
@ -438,7 +438,7 @@ static unique_ptr<Picture> _imageBuildHelper(SvgNode* node, float vx, float vy,
|
||||||
}
|
}
|
||||||
|
|
||||||
float x, y, w, h;
|
float x, y, w, h;
|
||||||
if (picture->viewbox(&x, &y, &w, &h) == Result::Success && vw && vh) {
|
if (picture->viewbox(&x, &y, &w, &h) == Result::Success && w && h) {
|
||||||
auto sx = node->node.image.w / w;
|
auto sx = node->node.image.w / w;
|
||||||
auto sy = node->node.image.h / h;
|
auto sy = node->node.image.h / h;
|
||||||
auto sxt = x * sx;
|
auto sxt = x * sx;
|
||||||
|
|
Loading…
Add table
Reference in a new issue