Skip using SVG view box size

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

@ -287,15 +287,10 @@ class ImageHelper {
SVG svg = SVG.getFromInputStream(is);
float dw = svg.getDocumentWidth();
float dh = svg.getDocumentHeight();
if (dw <= 0 || dh <= 0) {
RectF rect = svg.getDocumentViewBox();
dw = rect.width();
dh = rect.height();
if (dw <= 0 || dh <= 0) {
dw = scaleToPixels;
dh = scaleToPixels;
}
}
int w, h;
if (dw > scaleToPixels || dh > scaleToPixels) {

Loading…
Cancel
Save