From 724449a1b35e294b3191e00bd1614e5cd90c4d87 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Fri, 1 Mar 2024 00:48:04 +0100 Subject: [PATCH] comments in code about polygon point dragging --- src/callback.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/callback.c b/src/callback.c index 1eb8bc2b..8e433aac 100644 --- a/src/callback.c +++ b/src/callback.c @@ -1344,13 +1344,14 @@ int rstate; /* (reduced state, without ShiftMask) */ } redraw_w_a_l_r_p_rubbers(); - /* start of a mouse area select. Button1 pressed. No shift pressed */ + /* start of a mouse area select. Button1 pressed. No shift pressed + * Do not start an area select if user is dragging a polygon/bezier point */ if(!(xctx->ui_state & STARTPOLYGON) && (state&Button1Mask) && !(xctx->ui_state & STARTWIRE) && - !(xctx->ui_state & STARTPAN) && !(SET_MODMASK) && + !(xctx->ui_state & STARTPAN) && !(SET_MODMASK) && !xctx->poly_point_selected !(state & ShiftMask) && !(xctx->ui_state & (PLACE_SYMBOL | PLACE_TEXT))) { - if(!xctx->poly_point_selected && (mx != xctx->mx_save || my != xctx->my_save)) { + if(mx != xctx->mx_save || my != xctx->my_save) { if( !(xctx->ui_state & STARTSELECT)) { select_rect(START,1); xctx->onetime=1;