Subject: bug#59802: 30.0.50; Checkbox button not rendered

From: Manuel Giraud <[email-masked]>
Date: Mon, 12 Dec 2022 17:56:38 +0100

Hi (again),

Here is another patch that IMHO does a better job (at least in this use
case: a button with a label).  I also attach a little video that shows
its behaviour (hope you could read it).  WDYT?

>From 54f00f61a56f97fcf80214d303b3a806a4fc0484 Mon Sep 17 00:00:00 2001
From: Manuel Giraud <[email-masked]>
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

-- 
Manuel Giraud