Fix suggested by Abdel. JMarc owes Pavel a beer.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27051 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2008-10-23 12:21:12 +00:00
parent 32063acc8f
commit ba396d2966

View File

@ -1652,7 +1652,8 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
}
// if we executed a mutating lfun, mark the buffer as dirty
if (theBufferList().isLoaded(buffer) && flag.enabled()
if (buffer
&& theBufferList().isLoaded(buffer) && flag.enabled()
&& !lyxaction.funcHasFlag(action, LyXAction::NoBuffer)
&& !lyxaction.funcHasFlag(action, LyXAction::ReadOnly))
buffer->markDirty();