Bug 128457

Summary: Bookmark are 1 shifted
Product: kbabel Reporter: Rodrigo Frédéric <f.rodrigo>
Component: generalAssignee: Stanislav Visnovsky <visnovsky>
Status: RESOLVED FIXED    
Severity: normal CC: nicolasg
Priority: NOR    
Version: 1.11.2   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Rodrigo Frédéric 2006-06-01 20:04:44 UTC
Version:           1.11.2 (using KDE KDE 3.5.2)
Installed from:    Unlisted Binary Package
OS:                Linux

Bookmark are shifted by 1. e.g. when I bookmark the entry 12, in the bookmark 11 is added, and so on.
Comment 1 Stephan Johach 2006-11-05 21:34:33 UTC
SVN commit 602374 by johach:

Fixed bookmarking.
BUG:128457


 M  +1 -2      kbabel.cpp  


--- branches/KDE/3.5/kdesdk/kbabel/kbabel/kbabel.cpp #602373:602374
@@ -1677,8 +1677,7 @@
 
 void KBabelMW::slotAddBookmark()
 {
-  bmHandler->addBookmark(_currentIndex,
-    m_view->catalog()->msgid(_currentIndex - 1).first());
+    bmHandler->addBookmark(_currentIndex+1, m_view->catalog()->msgid(_currentIndex).first());
 }
 
 void KBabelMW::slotOpenBookmark(int index)