]> git.lyx.org Git - features.git/commitdiff
LyXFunc::gotoBookmark() use FileName::operator!=() instead of string comparison.
authorAbdelrazak Younes <younes@lyx.org>
Tue, 29 Jul 2008 07:59:58 +0000 (07:59 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 29 Jul 2008 07:59:58 +0000 (07:59 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25956 a592a061-630c-0410-9148-cb99ea01b6c8

src/LyXFunc.cpp

index 9269b6b48c46b914e5a58ce72e1d53d07ae216d9..5a1d88fcddd1da894a6110edae97e94efe41ab6e 100644 (file)
@@ -257,7 +257,7 @@ void LyXFunc::gotoBookmark(unsigned int idx, bool openFile, bool switchToBuffer)
                return;
 
        // if the current buffer is not that one, switch to it.
-       if (lyx_view_->buffer()->absFileName() != file) {
+       if (lyx_view_->buffer()->fileName() != bm.filename) {
                if (!switchToBuffer)
                        return;
                dispatch(FuncRequest(LFUN_BUFFER_SWITCH, file));