svg_loader: <image> tag introduced fix #4

fixed mistyped vw to w and vh to h
This commit is contained in:
Michal Maciola 2021-07-01 10:59:44 +02:00 committed by Hermet Park
parent d69805c668
commit e01f29270a

View file

@ -438,7 +438,7 @@ static unique_ptr<Picture> _imageBuildHelper(SvgNode* node, float vx, float vy,
}
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 sy = node->node.image.h / h;
auto sxt = x * sx;