]> granicus.if.org Git - graphviz/commitdiff
map_output_bspline: remove unnecessary bracketing
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 29 Aug 2021 23:58:58 +0000 (16:58 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 4 Sep 2021 02:28:20 +0000 (19:28 -0700)
lib/common/emit.c

index 4e590024c19ded57aea5f6c054a0c240a663a945..1068b47089ef67dadae63d0b93dadcaaf6e6b6bc 100644 (file)
@@ -991,7 +991,7 @@ static void map_output_bspline (pointf **pbs, int **pbs_n, int *pbs_poly_n, bezi
         segnext = segp->next;
         mkSegPts (segprev, segp, segnext, pt1+cnt, pt2+cnt, w2);
         cnt++;
-        if ((segnext == NULL) || (cnt == 50)) {
+        if (segnext == NULL || cnt == 50) {
             map_bspline_poly (pbs, pbs_n, pbs_poly_n, cnt, pt1, pt2);
             pt1[0] = pt1[cnt-1];
             pt2[0] = pt2[cnt-1];