From 5f6b7fdc670470bfcde799eb577afcda5a2ed43d Mon Sep 17 00:00:00 2001 From: AlicVB Date: Mon, 22 Nov 2021 20:05:16 +0100 Subject: [PATCH] ashift : fix reuse of direct straigthening --- src/iop/ashift.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/iop/ashift.c b/src/iop/ashift.c index 2b97fce04e31..9c2166903bb6 100644 --- a/src/iop/ashift.c +++ b/src/iop/ashift.c @@ -4711,8 +4711,6 @@ int button_released(struct dt_iop_module_t *self, double x, double y, int which, g->straightening = FALSE; // adjust the line with possible current angle and flip on this module float pts[4] = { x, y, g->lastx, g->lasty }; - dt_dev_distort_backtransform_plus(self->dev, self->dev->preview_pipe, self->iop_order, - DT_DEV_TRANSFORM_DIR_FORW_INCL, pts, 2); float dx = pts[0] - pts[2]; float dy = pts[1] - pts[3]; @@ -4736,6 +4734,7 @@ int button_released(struct dt_iop_module_t *self, double x, double y, int which, if(a < -180.0) a += 360.0; if(a > 180.0) a -= 360.0; + a -= dt_bauhaus_slider_get(g->rotation); dt_bauhaus_slider_set_soft(g->rotation, -a); return TRUE; }