diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/image.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/image.c b/src/image.c index f2597f529d1..f13304912c8 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -10484,6 +10484,9 @@ svg_load_image (struct frame *f, struct image *img, char *contents, | |||
| 10484 | viewbox_height = viewbox.height; | 10484 | viewbox_height = viewbox.height; |
| 10485 | } | 10485 | } |
| 10486 | else | 10486 | else |
| 10487 | viewbox_width = viewbox_height = 0; | ||
| 10488 | |||
| 10489 | if (viewbox_width == 0 || viewbox_height == 0) | ||
| 10487 | { | 10490 | { |
| 10488 | /* We haven't found a usable set of sizes, so try working out | 10491 | /* We haven't found a usable set of sizes, so try working out |
| 10489 | the visible area. */ | 10492 | the visible area. */ |