Bug#508443: When it will hit testing

Thomas Viehmann tv at beamnet.de
Mon Dec 22 16:30:59 UTC 2008


Here is the fix in the proper location.

Kind regards

T.

--- librsvg-2.22.2.orig/rsvg-path.c
+++ librsvg-2.22.2/rsvg-path.c
@@ -114,8 +114,9 @@
        cause divide by zero and subsequent NaNs.  We should
        really do some ranged check ie -0.001 < x < 000.1 rather
        can just a straight check again zero.
+       And now we even do! http://bugs.debian.org/508443
      */
-    if ((rx == 0.0) || (ry == 0.0))
+    if ((fabs(rx) < DBL_EPSILON) || (fabs(ry) < DBL_EPSILON))
         return;

     sin_th = sin (x_axis_rotation * (M_PI / 180.0));
-- 
Thomas Viehmann, http://thomas.viehmann.net/






More information about the pkg-gnome-maintainers mailing list