| 600 | } |
| 601 | |
| 602 | bool Render::previousPageIsDoublePage() |
| 603 | { |
| 604 | if (currentIndex == 2 && Configuration::getConfiguration().getSettings()->value(COVER_IS_SP, true).toBool()) { |
| 605 | return false; |
| 606 | } |
| 607 | if (buffer[currentPageBufferedIndex - 1]->isNull() || buffer[currentPageBufferedIndex - 2]->isNull()) { |
| 608 | return false; |
| 609 | } |
| 610 | if (imageRotation == 0 || imageRotation == 180) { |
| 611 | if (buffer[currentPageBufferedIndex - 1]->height() > buffer[currentPageBufferedIndex - 1]->width() && |
| 612 | buffer[currentPageBufferedIndex - 2]->height() > buffer[currentPageBufferedIndex - 2]->width()) { |
| 613 | return true; |
| 614 | } |
| 615 | } else if (imageRotation == 90 || imageRotation == 270) { |
| 616 | if (buffer[currentPageBufferedIndex - 1]->width() > buffer[currentPageBufferedIndex - 1]->height() && |
| 617 | buffer[currentPageBufferedIndex - 2]->width() > buffer[currentPageBufferedIndex - 2]->height()) { |
| 618 | return true; |
| 619 | } |
| 620 | } |
| 621 | return false; |
| 622 | } |
| 623 | |
| 624 | void Render::setRotation(int degrees) |
| 625 | { |