Juergen?


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30109 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2009-06-15 13:22:19 +00:00
parent 471e25647f
commit 9e9fdd57c3

View File

@ -265,7 +265,7 @@ void LyXFunc::gotoBookmark(unsigned int idx, bool openFile, bool switchToBuffer)
dispatch(FuncRequest(LFUN_BOOKMARK_SAVE, "0"));
// if the current buffer is not that one, switch to it.
if (lyx_view_->buffer()->fileName() != tmp.filename) {
if (!lyx_view_->buffer() || lyx_view_->buffer()->fileName() != tmp.filename) {
if (!switchToBuffer)
return;
dispatch(FuncRequest(LFUN_BUFFER_SWITCH, file));