From: Richard Heck Date: Thu, 23 Oct 2008 12:21:12 +0000 (+0000) Subject: Fix suggested by Abdel. JMarc owes Pavel a beer. X-Git-Tag: 1.6.10~2902 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ba396d296643a8f01e474158e218879cc84dd100;p=features.git 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 --- diff --git a/src/LyXFunc.cpp b/src/LyXFunc.cpp index d9a8be61c2..19049d2d33 100644 --- a/src/LyXFunc.cpp +++ b/src/LyXFunc.cpp @@ -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();