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.
This commit is contained in:
Lawrence Lee 2020-06-26 23:00:09 -07:00
parent d7c6b4b8f9
commit 1e4810b2c4

View File

@ -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);