]> granicus.if.org Git - graphviz/commitdiff
rePos: abbreviate some scaling
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 10 Sep 2021 01:03:51 +0000 (18:03 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 16 Sep 2021 02:57:07 +0000 (19:57 -0700)
lib/neatogen/adjust.c

index f02760d921866f592d29a13c061c3bed30b55ce1..8e627606375d8d3a3713aff6d9bb435bec5568fc 100644 (file)
@@ -562,8 +562,8 @@ static double rePos(void)
     double f = 1.0 + incr;
 
     for (i = 0; i < nsites; i++) {
-       ip->site.coord.x = f * ip->site.coord.x;
-       ip->site.coord.y = f * ip->site.coord.y;
+       ip->site.coord.x *= f;
+       ip->site.coord.y *= f;
        ip++;
     }
     return f;