summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/imageformats/pdf/qpdfiohandler.cpp2
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;