From: Matthew Fernandez Date: Sat, 3 Dec 2022 21:11:56 +0000 (-0800) Subject: neatogen _neato_set_aspect: abbreviate coordinate swapping X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f999a2f5105838d67711a4a12ad03021be1c975;p=graphviz neatogen _neato_set_aspect: abbreviate coordinate swapping --- diff --git a/lib/neatogen/neatosplines.c b/lib/neatogen/neatosplines.c index f1904a795..f03da45be 100644 --- a/lib/neatogen/neatosplines.c +++ b/lib/neatogen/neatosplines.c @@ -997,9 +997,7 @@ static bool _neato_set_aspect(graph_t * g) } /* normalize */ if (GD_flip(g)) { - double t = GD_bb(g).UR.x; - GD_bb(g).UR.x = GD_bb(g).UR.y; - GD_bb(g).UR.y = t; + GD_bb(g).UR = exch_xyf(GD_bb(g).UR); } if (GD_drawing(g)->ratio_kind == R_FILL) { /* fill is weird because both X and Y can stretch */