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:
Michal Maciola 2021-07-16 02:48:35 +02:00 committed by GitHub
parent f9d5c8b42d
commit b89abde7cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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;