Skip using SVG view box size

pull/215/head
M66B 5 months ago
parent cdeb3e13eb
commit 29650177c5

@ -288,13 +288,8 @@ class ImageHelper {
float dw = svg.getDocumentWidth(); float dw = svg.getDocumentWidth();
float dh = svg.getDocumentHeight(); float dh = svg.getDocumentHeight();
if (dw <= 0 || dh <= 0) { if (dw <= 0 || dh <= 0) {
RectF rect = svg.getDocumentViewBox(); dw = scaleToPixels;
dw = rect.width(); dh = scaleToPixels;
dh = rect.height();
if (dw <= 0 || dh <= 0) {
dw = scaleToPixels;
dh = scaleToPixels;
}
} }
int w, h; int w, h;

Loading…
Cancel
Save