mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
silly fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6545 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
efab45f55d
commit
d7e01188e5
@ -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 ...
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user