]> git.lyx.org Git - features.git/commitdiff
Fix suggested by Abdel. JMarc owes Pavel a beer.
authorRichard Heck <rgheck@comcast.net>
Thu, 23 Oct 2008 12:21:12 +0000 (12:21 +0000)
committerRichard Heck <rgheck@comcast.net>
Thu, 23 Oct 2008 12:21:12 +0000 (12:21 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27051 a592a061-630c-0410-9148-cb99ea01b6c8

src/LyXFunc.cpp

index d9a8be61c21785dcf6de71727b73441bcff18890..19049d2d33618d9b8a81ab0f77145424fb200d58 100644 (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();