+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 ...
break;
} // end of switch
+exit_with_message:
+
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();
+
+ if (view()->available()) {
+ view()->fitCursor();
-exit_with_message:
+ // 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);
}