From 4441b486935358d3054064b28f111a1872c73ca9 Mon Sep 17 00:00:00 2001 From: Chayan Deb Date: Sat, 15 Mar 2025 11:50:29 +0530 Subject: [PATCH] [Fixed Potential Bug]: The manhatan_line swap-fix for orthogonal wire-stretching is now only applied when 'orthogonal_wiring' is active. --- src/move.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/move.c b/src/move.c index 59893122..89194b78 100644 --- a/src/move.c +++ b/src/move.c @@ -1136,7 +1136,7 @@ void move_objects(int what, int merge, double dx, double dy) else if(wire[n].sel == SELECTED2) wire[n].sel = SELECTED1; } - if(wire[n].sel & (SELECTED|SELECTED1)) + if((wire[n].sel & (SELECTED|SELECTED1)) && tclgetboolvar("orthogonal_wiring")) { if(xctx->manhattan_lines & 1) xctx->manhattan_lines=2; else if(xctx->manhattan_lines & 2) xctx->manhattan_lines=1;