fix wrong toolbar "Push schematic" action

This commit is contained in:
Stefan Frederik 2021-11-06 02:09:32 +01:00
parent 7efc446dae
commit 173450edde
2 changed files with 3 additions and 4 deletions

View File

@ -308,9 +308,8 @@ void *my_malloc(int id, size_t size)
void *ptr;
if(size>0) {
ptr=malloc(size);
if(ptr == NULL) fprintf(errfp,"my_malloc(%d,): allocation failure\n", id);
dbg(3, "my_malloc(%d,): allocating %p , %lu bytes\n",
id, ptr, (unsigned long) size);
if(ptr == NULL) fprintf(errfp,"my_malloc(%d,): allocation failure\n", id);
dbg(3, "my_malloc(%d,): allocating %p , %lu bytes\n", id, ptr, (unsigned long) size);
}
else ptr=NULL;
return ptr;

View File

@ -4129,7 +4129,7 @@ if { ( $::OS== "Windows" || [string length [lindex [array get env DISPLAY] 1] ]
.menubar.edit.menu add radiobutton -label "Constrained Vertical move" -variable constrained_move \
-value 2 -accelerator V -command {xschem set constrained_move 2}
.menubar.edit.menu add command -label "Push schematic" -command "xschem descend" -accelerator E
toolbar_create EditPushSch "xschem move_objects" "Push schematic"
toolbar_create EditPushSch "xschem descend" "Push schematic"
.menubar.edit.menu add command -label "Push symbol" -command "xschem descend_symbol" -accelerator I
toolbar_create EditPushSym "xschem descend_symbol" "Push symbol"
.menubar.edit.menu add command -label "Pop" -command "xschem go_back" -accelerator Ctrl+E