Avoid unnecessary repaints in BooksPageWidget
This commit is contained in:
parent
b927acc010
commit
40b3051801
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue