From 08c613d3a87754a625e1631cf08b326c0ca49650 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Wed, 19 Mar 2025 10:03:20 +0100 Subject: [PATCH] fix regression (Shift-D not working) introduced after `Escape pressed while drawing polygon will cancel last segment instead of the whole poly` --- src/callback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/callback.c b/src/callback.c index 0b057c3a..75db7767 100644 --- a/src/callback.c +++ b/src/callback.c @@ -4250,7 +4250,7 @@ static void handle_button_press(int event, int state, int rstate, KeySym key, in if(end_place_move_copy_zoom()) return; /* Button1Press to select objects */ - if(!excl) { + if(!excl && !(xctx->ui_state & STARTSELECT)) { Selected sel; int already_selected = 0; int prev_last_sel = xctx->lastsel;