mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-30 19:56:10 +00:00
Skip using SVG view box size
This commit is contained in:
parent
cdeb3e13eb
commit
29650177c5
1 changed files with 2 additions and 7 deletions
|
@ -288,13 +288,8 @@ class ImageHelper {
|
|||
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;
|
||||
}
|
||||
dw = scaleToPixels;
|
||||
dh = scaleToPixels;
|
||||
}
|
||||
|
||||
int w, h;
|
||||
|
|
Loading…
Reference in a new issue