]> git.lyx.org Git - features.git/commitdiff
Berhard's tab patch: crash after saving new buffer and change to another new buffer
authorPeter Kümmel <syntheticpp@gmx.net>
Mon, 29 Jan 2007 20:06:08 +0000 (20:06 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Mon, 29 Jan 2007 20:06:08 +0000 (20:06 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16937 a592a061-630c-0410-9148-cb99ea01b6c8

src/lyxfunc.C

index 123e896bf42326f21211b96a96231d0dd74ede8d..588990d46be411004dc66109f0682c15c430bc58 100644 (file)
@@ -1760,8 +1760,8 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
 
                        // if we executed a mutating lfun, mark the buffer as dirty
                        if (flag.enabled()
-                           && !lyxaction.funcHasFlag(cmd.action, LyXAction::NoBuffer)
-                           && !lyxaction.funcHasFlag(cmd.action, LyXAction::ReadOnly))
+                           && !lyxaction.funcHasFlag(action, LyXAction::NoBuffer)
+                           && !lyxaction.funcHasFlag(action, LyXAction::ReadOnly))
                                view()->buffer()->markDirty();
 
                        if (view()->cursor().inTexted()) {