[GRASS-SVN] r55743 - grass/branches/releasebranch_6_4/lib/symbol

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Apr 13 04:47:56 PDT 2013


Author: hamish
Date: 2013-04-13 04:47:56 -0700 (Sat, 13 Apr 2013)
New Revision: 55743

Modified:
   grass/branches/releasebranch_6_4/lib/symbol/stroke.c
Log:
hack to make nicer circles with huge symbol size (merge from devbr6 r45638)

Modified: grass/branches/releasebranch_6_4/lib/symbol/stroke.c
===================================================================
--- grass/branches/releasebranch_6_4/lib/symbol/stroke.c	2013-04-13 11:25:58 UTC (rev 55742)
+++ grass/branches/releasebranch_6_4/lib/symbol/stroke.c	2013-04-13 11:47:56 UTC (rev 55743)
@@ -74,7 +74,11 @@
 	    }
 	    break;
 	case S_ARC:
-	    da = 10 * PI / 180;	/* later calc from size and tolerance */
+	    if (s >= 50)
+		da = 1 * PI / 180;  /* later calc from size and tolerance */
+	    else
+		da = 10 * PI / 180;
+
 	    r = elem->coor.arc.r;
 	    G_debug(5, "    ARC da = %f r = %f", da, r);
 
@@ -144,7 +148,7 @@
  *
  *  tolerance currently not supported
  */
-void S_stroke(SYMBOL * Symb, int size, double rotation, int tolerance)
+void S_stroke(SYMBOL *Symb, int size, double rotation, int tolerance)
 {
     int i, j;
     double s;



More information about the grass-commit mailing list