Commit 9231d344 authored by Shawn Rutledge's avatar Shawn Rutledge
Browse files

QPdfDocument: check first page in load(), current page in render()

When a viewer application is opened with a book-sized PDF, there's no
need to check hundreds of pages before we can render the first page.
Using it in QPdfIOHandler is even worse because this check needs to
be repeated each time we advance from one page to the next.  But we
do need to ensure that the page we want to render is available.
Amends 945840bd



Change-Id: Ib6576b1b91c63c2b57893d14b05632eff8cc4a15
Reviewed-by: default avatarMichal Klocek <michal.klocek@qt.io>
Showing with 48 additions and 2 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment