From 1e4810b2c40f6275afa3e81093638388c3c396ba Mon Sep 17 00:00:00 2001 From: Lawrence Lee Date: Fri, 26 Jun 2020 23:00:09 -0700 Subject: [PATCH] Make preview update when its crop origin changes Addresses issue #5806 by triggering a re-rendering of the preview's crop when the crop moves but the dimensions stay the same. --- rtengine/dcrop.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rtengine/dcrop.cc b/rtengine/dcrop.cc index 99bc2581d..ba1884c93 100644 --- a/rtengine/dcrop.cc +++ b/rtengine/dcrop.cc @@ -1780,8 +1780,11 @@ bool Crop::setCropSizes(int rcx, int rcy, int rcw, int rch, int skip, bool inter int orW, orH; parent->imgsrc->getSize(cp, orW, orH); - trafx = orx; - trafy = ory; + if (trafx != orx || trafy != ory) { + trafx = orx; + trafy = ory; + changed = true; + } int cw = skips(bw, skip); int ch = skips(bh, skip);