Avoid unnecessary processing when zooming to >= 100% or opening detail windows

This commit is contained in:
heckflosse
2018-02-06 13:50:00 +01:00
parent 563d443de3
commit c9819d35e6
4 changed files with 10 additions and 8 deletions

View File

@@ -198,9 +198,10 @@ void CropHandler::setZoom (int z, int centerx, int centery)
compDim ();
if (enabled && (oldZoom != zoom || oldcax != cax || oldcay != cay || oldCropX != cropX || oldCropY != cropY || oldCropW != cropW || oldCropH != cropH)) {
if (needsFullRefresh) {
if (needsFullRefresh && !ipc->getHighQualComputed()) {
cropPixbuf.clear ();
ipc->startProcessing(M_HIGHQUAL);
ipc->setHighQualComputed();
} else {
update ();
}