starting a move (m) or copy (c) operation when nothing is selected does not change ui_state. Clearly a bug

This commit is contained in:
stefan schippers 2024-11-29 01:30:38 +01:00
parent 8eb60ae32b
commit 7ca8857302
2 changed files with 3 additions and 1 deletions

View File

@ -530,6 +530,7 @@ void copy_objects(int what)
xctx->rotatelocal=0;
dbg(1, "copy_objects(): START copy\n");
rebuild_selected_array();
if(xctx->lastsel==0) return;
update_symbol_bboxes(0, 0);
if(xctx->connect_by_kissing == 2) xctx->kissing = connect_by_kissing();
else xctx->kissing = 0;
@ -929,6 +930,7 @@ void move_objects(int what, int merge, double dx, double dy)
xctx->rotatelocal=0;
xctx->deltax = xctx->deltay = 0.0;
rebuild_selected_array();
if(xctx->lastsel==0) return;
update_symbol_bboxes(0, 0);
/* if connect_by_kissing==2 it was set in callback.c ('M' command) */
if(xctx->connect_by_kissing == 2) xctx->kissing = connect_by_kissing();

View File

@ -22,7 +22,7 @@
# This script traverses the hierarchy and prints all instances in design.
proc traversal {file {only_subckts {}}} {
proc traversal {file {only_subckts {0}}} {
global keep_symbols
if { $file eq {} || [file exists $file] } {
puts stderr "empty or existing file..."