]> granicus.if.org Git - graphviz/commitdiff
dotgen adjustregularpath: remove unnecessary use of comma operator
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 8 Sep 2022 00:27:49 +0000 (17:27 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 29 Jan 2023 16:24:43 +0000 (08:24 -0800)
lib/dotgen/dotsplines.c

index de3b4765276dfb48fe9917c7ed06a261cc136d57..fcc0dfc87e5f7b8702f9395937fb3b8013a61e9c 100644 (file)
@@ -2228,12 +2228,14 @@ static void adjustregularpath(path * P, int fb, int lb)
        if ((i - fb) % 2 == 0) {
            if (bp1->LL.x >= bp1->UR.x) {
                double x = (bp1->LL.x + bp1->UR.x) / 2;
-               bp1->LL.x = x - HALFMINW, bp1->UR.x = x + HALFMINW;
+               bp1->LL.x = x - HALFMINW;
+               bp1->UR.x = x + HALFMINW;
            }
        } else {
            if (bp1->LL.x + MINW > bp1->UR.x) {
                double x = (bp1->LL.x + bp1->UR.x) / 2;
-               bp1->LL.x = x - HALFMINW, bp1->UR.x = x + HALFMINW;
+               bp1->LL.x = x - HALFMINW;
+               bp1->UR.x = x + HALFMINW;
            }
        }
     }