소스 검색

hack to make nicer circles with huge symbol size (merge from devbr6)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@45639 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman 14 년 전
부모
커밋
6c54c92839
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      lib/symbol/stroke.c

+ 5 - 1
lib/symbol/stroke.c

@@ -74,7 +74,11 @@ int stroke_chain(SYMBPART * part, int ch, double s, double rotation)
 	    }
 	    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);