svg_loader: image tag: force size equal to the viewbox (#603)
authorMichal Maciola <71131832+mmaciola@users.noreply.github.com>
Fri, 16 Jul 2021 00:48:35 +0000 (02:48 +0200)
committerHermet Park <chuneon.park@samsung.com>
Mon, 19 Jul 2021 03:00:56 +0000 (12:00 +0900)
* 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

Change-Id: I480e832b1f5a184ef0ef6ee597a320d5bbf7b508

src/loaders/svg/tvgSvgSceneBuilder.cpp

index 814d001..c2d608d 100644 (file)
@@ -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;