From e01f29270a4bf354e1cfcc01145fafc0bc1723bf Mon Sep 17 00:00:00 2001 From: Michal Maciola Date: Thu, 1 Jul 2021 10:59:44 +0200 Subject: [PATCH] svg_loader: tag introduced fix #4 fixed mistyped vw to w and vh to h --- src/loaders/svg/tvgSvgSceneBuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/loaders/svg/tvgSvgSceneBuilder.cpp b/src/loaders/svg/tvgSvgSceneBuilder.cpp index d60e5538..c8639e01 100644 --- a/src/loaders/svg/tvgSvgSceneBuilder.cpp +++ b/src/loaders/svg/tvgSvgSceneBuilder.cpp @@ -438,7 +438,7 @@ static unique_ptr _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;