From: Tommaso Cucinotta Date: Tue, 23 Mar 2010 00:45:37 +0000 (+0000) Subject: No more bookmarks in internal buffers (addresses #6605). X-Git-Tag: 2.0.0~3725 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=3b4bb219d650fd1e478af3e8c8438646c1f810c2;p=features.git No more bookmarks in internal buffers (addresses #6605). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33842 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 3ad78813c5..7af5c40475 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -696,17 +696,19 @@ void BufferView::saveBookmark(unsigned int idx) // acturately locate a bookmark in a 'live' lyx session. // pit and pos will be updated with bottom level pit/pos // when lyx exits. - theSession().bookmarks().save( - buffer_.fileName(), - d->cursor_.bottom().pit(), - d->cursor_.bottom().pos(), - d->cursor_.paragraph().id(), - d->cursor_.pos(), - idx - ); - if (idx) - // emit message signal. - message(_("Save bookmark")); + if (!buffer_.isInternal()) { + theSession().bookmarks().save( + buffer_.fileName(), + d->cursor_.bottom().pit(), + d->cursor_.bottom().pos(), + d->cursor_.paragraph().id(), + d->cursor_.pos(), + idx + ); + if (idx) + // emit message signal. + message(_("Save bookmark")); + } }