revert from tclgetboolvar to tclgetvar for edit_symbol_prop_new_sel, as this is not a boolean

This commit is contained in:
stefan schippers 2023-10-03 15:28:42 +02:00
parent 5c7abfa048
commit 02086d76a7
2 changed files with 3 additions and 3 deletions

View File

@ -2727,9 +2727,9 @@ int rstate; /* (reduced state, without ShiftMask) */
} else if(tcleval("winfo exists .dialog.txt")[0] == '1') { /* proc enter_text */
tcleval(".dialog.buttons.ok invoke");
break;
} else if(button==Button1 && state==0 && tclgetboolvar("edit_symbol_prop_new_sel")) {
} else if(button==Button1 && state==0 && tclgetvar("edit_symbol_prop_new_sel")[0]) {
tcleval("set edit_symbol_prop_new_sel 1; .dialog.f1.b1 invoke"); /* invoke 'OK' of edit prop dialog */
} else if(button==Button1 && (state & ShiftMask) && tclgetboolvar("edit_symbol_prop_new_sel")) {
} else if(button==Button1 && (state & ShiftMask) && tclgetvar("edit_symbol_prop_new_sel")[0]) {
select_object(xctx->mousex, xctx->mousey, SELECTED, 0);
rebuild_selected_array();
}

View File

@ -1789,7 +1789,7 @@ void edit_property(int x)
{
case ELEMENT:
modified |= edit_symbol_property(x, j);
while( x == 0 && tclgetboolvar("edit_symbol_prop_new_sel")) {
while( x == 0 && tclgetvar("edit_symbol_prop_new_sel")[0] == '1') {
unselect_all(1);
select_object(xctx->mousex, xctx->mousey, SELECTED, 0);
rebuild_selected_array();