Commit 380e271d authored by Jouni Pentikäinen's avatar Jouni Pentikäinen

Fix constant redrawing of reference images

BUG: 392852
parent ba809512
...@@ -121,6 +121,7 @@ void KisReferenceImagesDecoration::drawDecoration(QPainter &gc, const QRectF &up ...@@ -121,6 +121,7 @@ void KisReferenceImagesDecoration::drawDecoration(QPainter &gc, const QRectF &up
} else { } else {
QTransform transform = view()->viewConverter()->imageToWidgetTransform(); QTransform transform = view()->viewConverter()->imageToWidgetTransform();
if (!KisAlgebra2D::fuzzyMatrixCompare(transform, d->previousTransform, 1e-4)) { if (!KisAlgebra2D::fuzzyMatrixCompare(transform, d->previousTransform, 1e-4)) {
d->previousTransform = transform;
d->updateBufferByWidgetCoordinates(QRectF(0, 0, view()->width(), view()->height())); d->updateBufferByWidgetCoordinates(QRectF(0, 0, view()->width(), view()->height()));
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment