docviewer crashes on going at the last item of the ToC

Bug #1444972 reported by Stefano Verzegnassi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Document Viewer App
Fix Released
Undecided
Stefano Verzegnassi

Bug Description

STEPS TO REPRODUCE:
1) Launch Document Viewer
2) Open a PDF (for example, this[1])
3) Open the Table of Contents
4) Choose the last item of the list (for the document [1] is "Colophon")

WHAT SHOULD HAPPEN:
The page "Colophon" is visible on the screen.

WHAT HAPPENS INSTEAD:
docviewer crashes.

This bug happens because the check of the entry to be highlighted fails when that entry is the last one in the ToC[2].

[1]: http://files.ubuntu-manual.org/manuals/getting-started-with-ubuntu/14.04/en_US/screen/Getting%20Started%20with%20Ubuntu%2014.04.pdf

[2]: http://bazaar.launchpad.net/~ubuntu-docviewer-dev/ubuntu-docviewer-app/trunk/view/head:/src/app/qml/pdfView/PdfContentsPage.qml

Related branches

Changed in ubuntu-docviewer-app:
status: Confirmed → In Progress
assignee: nobody → Stefano Verzegnassi (verzegnassi-stefano)
Changed in ubuntu-docviewer-app:
milestone: none → 2015-04-16
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

Fix committed into lp:ubuntu-docviewer-app at revision 133, scheduled for release in ubuntu-docviewer-app, milestone 2014-10-30

Changed in ubuntu-docviewer-app:
status: In Progress → Fix Committed
Changed in ubuntu-docviewer-app:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.