[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: pcb.git: branch: master updated (359a02cfe25e32aec7d2985c8f368fbfdcd954fa)



The branch, master has been updated
       via  359a02cfe25e32aec7d2985c8f368fbfdcd954fa (commit)
      from  50b9810c5acdd0caf5ab6efd92db97d6ee747c5b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 src/polygon.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


=================
 Commit Messages
=================

commit 359a02cfe25e32aec7d2985c8f368fbfdcd954fa
Author: Ineiev <ineiev@xxxxxxxxxxxxxxxx>
Commit: Ineiev <ineiev@xxxxxxxxxxxxxxxx>

    fix polygon regression
    
    Introduced by 2d8dc8a3a3a55158b4e6278dd9f40588e4111c2d
    
    Reported by Kai-Martin Knaak

:100644 100644 c552f3c... 0235495... M	src/polygon.c

=========
 Changes
=========

commit 359a02cfe25e32aec7d2985c8f368fbfdcd954fa
Author: Ineiev <ineiev@xxxxxxxxxxxxxxxx>
Commit: Ineiev <ineiev@xxxxxxxxxxxxxxxx>

    fix polygon regression
    
    Introduced by 2d8dc8a3a3a55158b4e6278dd9f40588e4111c2d
    
    Reported by Kai-Martin Knaak

diff --git a/src/polygon.c b/src/polygon.c
index c552f3c..0235495 100644
--- a/src/polygon.c
+++ b/src/polygon.c
@@ -498,8 +498,8 @@ ArcPolyNoIntersect (ArcType * a, BDimension thick)
   ry = MAX (a->Height - half, 0);
   segs = 1;
   if(thick > 0)
-    segs = a->Delta * M_PI / 360
-	    * sqrt(sqrt((double)rx*rx + (double)ry*ry)/delta_th/2/thick);
+    segs = MAX (segs, a->Delta * M_PI / 360
+		* sqrt(sqrt((double)rx*rx + (double)ry*ry)/delta_th/2/thick));
   segs = MAX(segs, a->Delta / ARC_ANGLE);
 
   ang = a->StartAngle;




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs