diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/imageformats/pdf/qpdfiohandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/imageformats/pdf/qpdfiohandler.cpp b/src/plugins/imageformats/pdf/qpdfiohandler.cpp index 98e4f4663..4f610935c 100644 --- a/src/plugins/imageformats/pdf/qpdfiohandler.cpp +++ b/src/plugins/imageformats/pdf/qpdfiohandler.cpp @@ -211,7 +211,7 @@ bool QPdfIOHandler::supportsOption(ImageOption option) const bool QPdfIOHandler::jumpToImage(int frame) { qCDebug(qLcPdf) << Q_FUNC_INFO << frame; - if (frame < 0 || frame >= m_doc.pageCount()) + if (frame < 0 || frame >= imageCount()) return false; m_page = frame; return true; |