From 02247d13bbbd5123e00712218ce34637b41cc36e Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Tue, 5 Mar 2024 09:58:48 +0100 Subject: [PATCH] intuitive_interface fix bug(2) (did unselect all when clicking on a new instance) --- src/callback.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/callback.c b/src/callback.c index f2376df7..26c701fb 100644 --- a/src/callback.c +++ b/src/callback.c @@ -3400,8 +3400,9 @@ int rstate; /* (reduced state, without ShiftMask) */ xctx->mx_double_save=xctx->mousex_snap; xctx->my_double_save=xctx->mousey_snap; + if(!xctx->intuitive_interface && !(state & (ShiftMask | ControlMask) )) unselect_all(1); sel = select_object(xctx->mousex, xctx->mousey, SELECTED, 0); - if(!sel.type && !(state & (ShiftMask | ControlMask) ) ) unselect_all(1); + if(xctx->intuitive_interface && !sel.type && !(state & (ShiftMask | ControlMask) ) ) unselect_all(1); rebuild_selected_array(); if(xctx->lastsel == 1 && xctx->sel_array[0].type==POLYGON)