mirror of
https://github.com/YACReader/yacreader
synced 2026-03-01 10:22:58 -05:00
Format
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user