From: Alan Third Date: Mon, 9 Nov 2020 16:22:13 +0000 (+0000) Subject: Fix css length calculations X-Git-Tag: emacs-28.0.90~5207 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=52937958064223bec3ad518363d3cc50d995b259;p=emacs.git Fix css length calculations * src/image.c (svg_css_length_to_pixels): Put in missing breaks where necessary. --- diff --git a/src/image.c b/src/image.c index d207f78e04b..d190c254136 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;