From 7208c73480ded02511ae4578921b43a362832627 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 16 Jan 2013 16:12:43 +0530 Subject: [PATCH] E-book-viewer: Fix TOC links without anchors not scrolling to the top of the current flow --- src/calibre/gui2/viewer/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/viewer/main.py b/src/calibre/gui2/viewer/main.py index cb1d978c0e..903f41eeb5 100644 --- a/src/calibre/gui2/viewer/main.py +++ b/src/calibre/gui2/viewer/main.py @@ -758,7 +758,7 @@ class EbookViewer(MainWindow, Ui_EbookViewer): self.view.scroll_to(frag) else: # Scroll to top - self.view.scroll_to('#') + self.view.scroll_to(0) if self.view.document.ypos == oldpos: # If we are coming from goto_next_section() call this will # cause another goto next section call with the next toc