From 2f26544c45e301652f6cc632ef6638f6f09bd9c5 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Sun, 16 Mar 2025 01:17:50 +0100 Subject: [PATCH] dont assume a particular manhattan_lines when starting wires or lines. Keep last one set --- src/callback.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/callback.c b/src/callback.c index 8ca8829a..2793a427 100644 --- a/src/callback.c +++ b/src/callback.c @@ -166,7 +166,7 @@ void abort_operation(void) return; } xctx->last_command=0; - xctx->manhattan_lines = 0; + /* xctx->manhattan_lines = 0; */ if(xctx->ui_state & STARTMOVE) { move_objects(ABORT,0,0,0); @@ -226,7 +226,7 @@ void start_line(double mx, double my) if(xctx->constr_mv == 1) my = xctx->my_double_save; if(xctx->constr_mv == 2) mx = xctx->mx_double_save; } else { - xctx->manhattan_lines = 0; + /* xctx->manhattan_lines = 0; */ xctx->mx_double_save=mx; xctx->my_double_save=my; } @@ -253,7 +253,7 @@ void start_wire(double mx, double my) if(xctx->constr_mv == 1) my = xctx->my_double_save; if(xctx->constr_mv == 2) mx = xctx->mx_double_save; } else { - xctx->manhattan_lines = 1; + /* xctx->manhattan_lines = 1; */ xctx->mx_double_save=mx; xctx->my_double_save=my; } @@ -1673,7 +1673,7 @@ static void snapped_wire(double c_snap) find_closest_net_or_symbol_pin(xctx->mousex, xctx->mousey, &x, &y); xctx->mx_double_save = my_round(x / c_snap) * c_snap; xctx->my_double_save = my_round(y / c_snap) * c_snap; - xctx->manhattan_lines = 1; + /* xctx->manhattan_lines = 1; */ new_wire(PLACE, x, y); new_wire(RUBBER, xctx->mousex_snap,xctx->mousey_snap); }