From 733d5a9bb10e4402c8eeb068f382ec836a4face2 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Tue, 5 Mar 2024 09:55:35 +0100 Subject: [PATCH] intuitive_interface fix bug (did unselect all when clicking on a new instance) --- src/callback.c | 2 +- src/draw.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/callback.c b/src/callback.c index 422834fc..f2376df7 100644 --- a/src/callback.c +++ b/src/callback.c @@ -3400,8 +3400,8 @@ int rstate; /* (reduced state, without ShiftMask) */ xctx->mx_double_save=xctx->mousex_snap; xctx->my_double_save=xctx->mousey_snap; - if(!(state & (ShiftMask | ControlMask) ) ) unselect_all(1); sel = select_object(xctx->mousex, xctx->mousey, SELECTED, 0); + if(!sel.type && !(state & (ShiftMask | ControlMask) ) ) unselect_all(1); rebuild_selected_array(); if(xctx->lastsel == 1 && xctx->sel_array[0].type==POLYGON) diff --git a/src/draw.c b/src/draw.c index b2d523cf..c6a27a7c 100644 --- a/src/draw.c +++ b/src/draw.c @@ -1812,7 +1812,7 @@ void drawtemppolygon(GC gc, int what, double *x, double *y, int points, int flag sy2=Y_TO_SCREEN(y2); if( rectclip(xctx->areax1,xctx->areay1,xctx->areax2,xctx->areay2,&sx1,&sy1,&sx2,&sy2) ) { - bezier = (flags & 1) && (points > 2); + bezier = (flags & 1) && (points > 2); drawpoints = (flags & 2); if((fix_broken_tiled_fill || !_unix) && gc == xctx->gctiled) { MyXCopyAreaDouble(display, xctx->save_pixmap, xctx->window, xctx->gc[0],