mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix crash http://www.lyx.org/trac/ticket/6000
Juergen? git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30109 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
471e25647f
commit
9e9fdd57c3
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user