Icon missing for SVG file without valid width and height attributes
Affected version
- Nightly flatpak: Yes (43.beta-367958b1)
- Other: 42.0, 41.5
Steps to reproduce
- Download or create SVG file without width/height attributes, or one of them having
0
value. Or with viewBox="0 0 0 0". - Open folder with previously created SVG file in GNOME Files.
Current behavior
Generated thumbnail is very small square. On current stable program versions thumbnail size is impacting file layout on file list. In Nightly grid issue is fixed, as SVG file item has same size container as other files or folders.
Here's a SVG file for testing: empty.svg
Expected behavior
If thumbnail generation fails GNOME Files should fallback to generic image file icon.