Avoid unnecessary repaints in BooksPageWidget

This commit is contained in:
Slava Monich 2015-07-06 22:16:29 +03:00
parent b927acc010
commit 40b3051801

View file

@ -347,7 +347,7 @@ void BooksPageWidget::paint(QPainter* aPainter)
HDEBUG("page" << iPage);
aPainter->drawImage(0, 0, *iImage);
iEmpty = false;
} else if (iPage >= 0 && iPageMark.valid()) {
} else if (iPage >= 0 && iPageMark.valid() && !iData.isNull()) {
if (!iRenderTask) {
HDEBUG("page" << iPage << "(scheduled)");
scheduleRepaint();