diff options
author | Andi_G <andigros72@googlemail.com> | 2011-08-18 23:58:28 (GMT) |
---|---|---|
committer | Andi_G <andigros72@googlemail.com> | 2011-08-18 23:58:28 (GMT) |
commit | b870f1bf3d1385ab14c95f3203a9427693a137f9 (patch) | |
tree | f073d1c140bcbea506438f115b65f1d295c129d9 | |
parent | 0b12f9a6ec2409bdaf0fb355c77e7915d3507f54 (diff) |
corrected but in annotation navigation
-rw-r--r-- | annoactivity.py | 4 | ||||
-rw-r--r-- | readdb.py | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/annoactivity.py b/annoactivity.py index d999881..e9ae1d6 100644 --- a/annoactivity.py +++ b/annoactivity.py @@ -539,7 +539,7 @@ class AnnoActivity(activity.Activity): prev_anno = annomanager.get_prev_annotation(page) if prev_anno is not None: _logger.debug('prev annotation page is %d' % prev_anno.page) - self._view.set_current_page(prev_anno.page) + self._view.set_current_page(prev_anno.page + 1) def __next_annotation_activate_cb(self, menuitem): @@ -550,7 +550,7 @@ class AnnoActivity(activity.Activity): if next_anno is not None: _logger.debug('next annotation page is %d' % next_anno.page) - self._view.set_current_page(next_anno.page) + self._view.set_current_page(next_anno.page + 1) def __bookmarker_toggled_cb(self, button): page = self._view.get_current_page() @@ -474,7 +474,6 @@ class AnnotationManager: def get_next_annotation(self, page): pages, id_ann_map = self.get_pages_and_id_to_ann_map() pages_with_annotations = sorted(pages.keys()) - _logger.debug('pages with annotations: %s' % str(pages_with_annotations)) if not pages_with_annotations == None: if self.current_annotation == None: if not page in pages_with_annotations: @@ -488,7 +487,6 @@ class AnnotationManager: self.current_annotation = id_ann_map[pages[page][0]] if not self.current_annotation == None: t = pages[self.current_annotation.page] - _logger.debug('ids for current page %s' % str(t)) tind = t.index(self.current_annotation.id) if tind < len(t) - 1: #next annotation on the same page self.current_annotation = id_ann_map[t[tind + 1]] |