silly fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6545 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2003-03-19 18:43:56 +00:00
parent efab45f55d
commit d7e01188e5
2 changed files with 16 additions and 8 deletions

View File

@ -1,3 +1,7 @@
2003-03-19 John Levon <levon@movementarian.org>
* lyxfunc.C: only fitcursor/markDirty if available()
2003-03-19 John Levon <levon@movementarian.org>
* commandtags.h: rename to ...

View File

@ -1577,15 +1577,19 @@ void LyXFunc::dispatch(FuncRequest const & ev, bool verbose)
break;
} // end of switch
view()->owner()->updateLayoutChoice();
view()->fitCursor();
// If we executed a mutating lfun, mark the buffer as dirty
if (!lyxaction.funcHasFlag(ev.action, LyXAction::NoBuffer)
&& !lyxaction.funcHasFlag(ev.action, LyXAction::ReadOnly))
view()->buffer()->markDirty();
exit_with_message:
view()->owner()->updateLayoutChoice();
if (view()->available()) {
view()->fitCursor();
// If we executed a mutating lfun, mark the buffer as dirty
if (!lyxaction.funcHasFlag(ev.action, LyXAction::NoBuffer)
&& !lyxaction.funcHasFlag(ev.action, LyXAction::ReadOnly))
view()->buffer()->markDirty();
}
sendDispatchMessage(getMessage(), ev, verbose);
}