rsvg-convert: Catch the case where the SVG has no dimensions

parent 696159cf
Pipeline #84194 failed with stages
in 66 minutes and 35 seconds
......@@ -417,6 +417,11 @@ main (int argc, char **argv)
exit (1);
}
if (dimensions.width == 0 || dimensions.height == 0) {
g_printerr ("The SVG %s has no dimensions\n", args[i]);
exit (1);
}
unscaled_width = dimensions.width;
unscaled_height = dimensions.height;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment