Bug#273729: oops

Matijs van Zuijlen Matijs van Zuijlen <Matijs.van.Zuijlen@xs4all.nl>, 273729@bugs.debian.org
Mon, 18 Oct 2004 10:52:45 +0200


--0H629O+sVkh21xTi
Content-Type: multipart/mixed; boundary="lc9FT7cWel8HagAv"
Content-Disposition: inline


--lc9FT7cWel8HagAv
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Oct 18, 2004 at 08:28:38AM +0200, Sebastien Bacher wrote:
> Where the patch ? It seems to be missing in the bug report ...

Yes, in addition to messing up the control commands, I forgot to attach the
patch. *sigh*. Well, here it is.

--=20
Matijs van Zuijlen					http://www.matijs.net/

--lc9FT7cWel8HagAv
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="librsvg2.patch"

--- rsvg-paint-server.c.orig	2004-10-17 20:27:15.958792130 +0200
+++ rsvg-paint-server.c	2004-10-17 20:24:18.963987685 +0200
@@ -240,6 +240,9 @@
 		scale = 0.;
 	else
 		scale = 1.0 / (dx * dx + dy * dy);
+	if (isnan(scale)) scale = 0.;
+	if (isnan(dx)) dx = 0.;
+	if (isnan(dy)) dy = 0.;
 	agl->a = dx * scale;
 	agl->b = dy * scale;
 	agl->c = -(x1 * agl->a + y1 * agl->b);

--lc9FT7cWel8HagAv--

--0H629O+sVkh21xTi
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBc4Rdh3TgaXYDPEERAkj3AJkB6fF1u1HtNeuM7sCj1Cd0hycU1QCffqgo
zlmB1Hox1yD7jqRqjyd93sE=
=DB8X
-----END PGP SIGNATURE-----

--0H629O+sVkh21xTi--