mirror of
https://github.com/YACReader/yacreader
synced 2026-03-01 02:13:02 -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()) {
|
||||
const ScaledPageCacheEntry &entry = it.value();
|
||||
const bool validEntry = entry.sourceCacheKey == sourceKey
|
||||
&& entry.sourceSize == source->size()
|
||||
&& entry.targetSize == targetSize
|
||||
&& !entry.scaledImage.isNull();
|
||||
const bool validEntry = entry.sourceCacheKey == sourceKey && entry.sourceSize == source->size() && entry.targetSize == targetSize && !entry.scaledImage.isNull();
|
||||
if (validEntry) {
|
||||
return &it.value().scaledImage;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user