From 4b166c7d8427c0873c0834004f4edab56489145f Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Fri, 23 Dec 2005 12:19:56 +0000 Subject: [PATCH] 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 --- src/ChangeLog | 5 +++++ src/lyxfunc.C | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) 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(); } -- 2.39.5