On Mon, 1 Feb 1999, Alexander Larsson verbalised:

> On 31 Jan, Lars R. Clausen wrote:
>> 
>> This diff gives defaults dialogs for boxes, ellipses and text, and makes
>> the arrows for arc behave reasonably (though there might be room for
>> improvement).  There's also some include file changes for gtk 1.1.14,
>> and a few old things that still reside in my copy of the source.
> 
>  There's a bug with the arc arrows. If one (or both) of the arrow ends
>  has a arrow some extra diagonal line is drawn perpendicular to the
>  arrow. I haven't checked the code.

Yes, that's because of some debugging information I had left in.  Here's a
minipatch to fix that.

Index: objects/standard/arc.c
===================================================================
RCS file: /cvs/gnome/dia/objects/standard/arc.c,v
retrieving revision 1.8
diff -b -B -u -r1.8 arc.c
--- objects/standard/arc.c      1999/02/01 20:50:42     1.8
+++ objects/standard/arc.c      1999/02/01 20:54:57
@@ -463,7 +463,6 @@
     len = centervec.x*centervec.x+centervec.y*centervec.y;
     point_add(&centervec, &endpoints[1]);
     /* Centervec should now be the midpoint between [0] and [1] */
-    renderer->ops->draw_line(renderer, &centervec, &arc->center, &color_black);
     reversepoint = centervec;
     point_sub(&centervec, &arc->center);
     len2 = centervec.x*centervec.x+centervec.y*centervec.y;
@@ -475,7 +474,6 @@
     controlpoint0 = controlpoint1 = reversepoint;
     len = arc->angle2-arc->angle1;
     if (len > 180 || (len < 0.0 && len > -180)) {
-      printf("Flipflop\n");
       centervec = endpoints[0];
       point_sub(&centervec, &reversepoint);
       point_add(&controlpoint0, &centervec);


-- 
Lars R. Clausen ([EMAIL PROTECTED])
A *real* smart bomb would call in sick, perhaps move to another country,
changing its name in the process, open a beach bar maybe and live out its
days in safe anonymity.                          -- Barry O'Neill in rhod

Reply via email to