emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 5293795: Fix css length calculations


From: Alan Third
Subject: master 5293795: Fix css length calculations
Date: Mon, 9 Nov 2020 11:25:13 -0500 (EST)

branch: master
commit 52937958064223bec3ad518363d3cc50d995b259
Author: Alan Third <alan@idiocy.org>
Commit: Alan Third <alan@idiocy.org>

    Fix css length calculations
    
    * src/image.c (svg_css_length_to_pixels): Put in missing breaks where
    necessary.
---
 src/image.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/image.c b/src/image.c
index d207f78..d190c25 100644
--- a/src/image.c
+++ b/src/image.c
@@ -9767,6 +9767,7 @@ svg_css_length_to_pixels (RsvgLength length)
     case RSVG_UNIT_CM:
       /* 2.54 cm in an inch.  */
       value = dpi * value / 2.54;
+      break;
     case RSVG_UNIT_MM:
       /* 25.4 mm in an inch.  */
       value = dpi * value / 25.4;
@@ -9774,9 +9775,11 @@ svg_css_length_to_pixels (RsvgLength length)
     case RSVG_UNIT_PT:
       /* 72 points in an inch.  */
       value = dpi * value / 72;
+      break;
     case RSVG_UNIT_PC:
       /* 6 picas in an inch.  */
       value = dpi * value / 6;
+      break;
     case RSVG_UNIT_IN:
       value *= dpi;
       break;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]