From: Jean-Marc Lasgouttes Date: Fri, 23 Dec 2005 12:19:56 +0000 (+0000) Subject: bug 2172: buffer not marked dirty after LFUN_CUT X-Git-Tag: 1.6.10~13736 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=4b166c7d8427c0873c0834004f4edab56489145f;p=lyx.git bug 2172: buffer not marked dirty after LFUN_CUT git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10678 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/ChangeLog b/src/ChangeLog index c4ec81f303..4ea6cc06fe 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-12-22 Jean-Marc Lasgouttes + + * lyxfunc.C (dispatch): do not call getStatus again to determine + whether a lfun is disabled (bug 2172). + 2005-12-19 Jean-Marc Lasgouttes * cursor.C (macroModeClose): set the cursor inside the new math diff --git a/src/lyxfunc.C b/src/lyxfunc.C index 23c7a5f2ea..b204a70900 100644 --- a/src/lyxfunc.C +++ b/src/lyxfunc.C @@ -1592,10 +1592,9 @@ void LyXFunc::dispatch(FuncRequest const & cmd) view()->update(Update::FitCursor); // if we executed a mutating lfun, mark the buffer as dirty - // FIXME: Why not use flag.enabled() but call getStatus again? - if (getStatus(cmd).enabled() - && !lyxaction.funcHasFlag(cmd.action, LyXAction::NoBuffer) - && !lyxaction.funcHasFlag(cmd.action, LyXAction::ReadOnly)) + if (flag.enabled() + && !lyxaction.funcHasFlag(cmd.action, LyXAction::NoBuffer) + && !lyxaction.funcHasFlag(cmd.action, LyXAction::ReadOnly)) view()->buffer()->markDirty(); }