Bug 128457 - Bookmark are 1 shifted
Summary: Bookmark are 1 shifted
Status: RESOLVED FIXED
Alias: None
Product: kbabel
Classification: Miscellaneous
Component: general (show other bugs)
Version: 1.11.2
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Stanislav Visnovsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-01 20:04 UTC by Rodrigo Frédéric
Modified: 2006-11-05 21:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)