From 54f00f61a56f97fcf80214d303b3a806a4fc0484 Mon Sep 17 00:00:00 2001 From: Manuel Giraud Date: Mon, 12 Dec 2022 17:39:57 +0100 Subject: [PATCH] another test --- src/image.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/image.c b/src/image.c index 7db6c9d2fc..d190e8f98a 100644 --- a/src/image.c +++ b/src/image.c @@ -11157,9 +11157,13 @@ svg_css_length_to_pixels (RsvgLength length, double dpi, int font_size) value *= font_size; break; #endif + case RSVG_UNIT_PERCENT: + /* We use percent of the font_size. */ + value *= font_size; + break; default: - /* Probably ex or %. We can't know what the pixel value is - without more information. */ + /* Probably ex. We can't know what the pixel value is without + more information. */ value = 0; } -- 2.38.1