This commit is contained in:
luisangelsm
2026-02-26 20:45:50 +01:00
parent edbbc3c577
commit a936c23cdc

View File

@ -173,10 +173,7 @@ const QImage *ContinuousPageWidget::scaledImageForPaint(int pageIndex, const QIm
if (it != scaledPageCache.pages.end()) { if (it != scaledPageCache.pages.end()) {
const ScaledPageCacheEntry &entry = it.value(); const ScaledPageCacheEntry &entry = it.value();
const bool validEntry = entry.sourceCacheKey == sourceKey const bool validEntry = entry.sourceCacheKey == sourceKey && entry.sourceSize == source->size() && entry.targetSize == targetSize && !entry.scaledImage.isNull();
&& entry.sourceSize == source->size()
&& entry.targetSize == targetSize
&& !entry.scaledImage.isNull();
if (validEntry) { if (validEntry) {
return &it.value().scaledImage; return &it.value().scaledImage;
} }