|
From: | Po Lu |
Subject: | Re: emacs-29 dc78779c0c: Fix SVG scaling (bug#59802) |
Date: | Sat, 17 Dec 2022 09:26:08 +0800 |
User-agent: | Gnus/5.13 (Gnus v5.13) |
Eli Zaretskii <eliz@gnu.org> writes: > + if (! (0 < viewbox_width) && (iwidth.unit == RSVG_UNIT_PERCENT)) > + viewbox_width = (viewbox_height * viewbox.width / viewbox.height) > + * iwidth.length; > + else if (! (0 < viewbox_height) && (iheight.unit == > RSVG_UNIT_PERCENT)) > + viewbox_height = (viewbox_width * viewbox.height / viewbox.width) > + * iheight.length; Our style is to write: viewbox_width = ((viewbox_height * viewbox.width / viewbox.height) * iwidth.length); and not: viewbox_width = (viewbox_height * viewbox.width / viewbox.height) * iwidth.length; Thanks.
[Prev in Thread] | Current Thread | [Next in Thread] |