From 85abc67c898251fd321c07fd11255447ff860141 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Thu, 21 Mar 2024 01:28:01 +0100 Subject: [PATCH] fix arc placement if moving mouse to the left for second point --- src/actions.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/actions.c b/src/actions.c index 6c3c831a..368a8573 100644 --- a/src/actions.c +++ b/src/actions.c @@ -3112,6 +3112,8 @@ void new_arc(int what, double sweep, double mousex_snap, double mousey_snap) drawtempline(xctx->gctiled, NOW, xctx->nl_xx1,xctx->nl_yy1,xctx->nl_xx2,xctx->nl_yy2); restore_selection(xctx->nl_xx1, xctx->nl_yy1, xctx->nl_xx2, xctx->nl_yy2); xctx->nl_x2 = xctx->mousex_snap;xctx->nl_y2 = xctx->mousey_snap; + xctx->nl_xx1 = xctx->nl_x1; /* This **is** needed. Don't remove! */ + xctx->nl_yy1 = xctx->nl_y1; /* This **is** needed. Don't remove! */ xctx->nl_xx2 = xctx->mousex_snap; xctx->nl_yy2 = xctx->mousey_snap; ORDER(xctx->nl_xx1,xctx->nl_yy1,xctx->nl_xx2,xctx->nl_yy2);