Hi,
        Using latest CVS I managed to get a problem with bezier_add_lines,
going into infinite recursion and never leaving, the problem was that
delta was coming up as not-a-number (nan), I don't know how this happened
and I overwrote the dia file by mistake :-(... the following patch puts in
a check for delta being nan... and returns if it is ..

There may be a proper way to do this ..

Dave.

Index: app/render_gdk.c
===================================================================
RCS file: /cvs/gnome/dia/app/render_gdk.c,v
retrieving revision 1.12
diff -u -r1.12 render_gdk.c
--- app/render_gdk.c    1999/10/26 20:11:32     1.12
+++ app/render_gdk.c    2000/01/10 14:29:00
@@ -705,6 +705,8 @@
   x = u;
   point_sub(&x,&y);
   delta = ddisplay_transform_length(ddisp, point_dot(&x,&x));
+   if (isnan(delta))
+      return;
   if (delta < BEZIER_SUBDIVIDE_LIMIT_SQ) {
     u = points[2];
     point_sub(&u, &points[3]);


-- 
                David Airlie, Software Engineer
Drua Technologies Ltd, Innovation Centre, National Tech Park, Limerick.
   t: +353-61-503075 / f: +353-61-338065 / [EMAIL PROTECTED]

Reply via email to