From 78cd051f4aea0b90a176ef3c13aa53f786824138 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 23 Oct 2008 12:35:20 +0000 Subject: [PATCH] Revert r27051 because: (1) I do not owe pavel a beer (2) I removed the assert in isLoaded instead (3) this fix is wrong anyway since there are other calls to this method. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27053 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/LyXFunc.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/LyXFunc.cpp b/src/LyXFunc.cpp index 19049d2d33..d9a8be61c2 100644 --- a/src/LyXFunc.cpp +++ b/src/LyXFunc.cpp @@ -1652,8 +1652,7 @@ void LyXFunc::dispatch(FuncRequest const & cmd) } // if we executed a mutating lfun, mark the buffer as dirty - if (buffer - && theBufferList().isLoaded(buffer) && flag.enabled() + if (theBufferList().isLoaded(buffer) && flag.enabled() && !lyxaction.funcHasFlag(action, LyXAction::NoBuffer) && !lyxaction.funcHasFlag(action, LyXAction::ReadOnly)) buffer->markDirty(); -- 2.39.2