[Fixed Potential Bug]: The manhatan_line swap-fix for orthogonal wire-stretching is now only applied when 'orthogonal_wiring' is active.

This commit is contained in:
Chayan Deb 2025-03-15 11:50:29 +05:30
parent f89135e46d
commit 4441b48693
1 changed files with 1 additions and 1 deletions

View File

@ -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;