The inset DOES know what kind of update is needed, and it is supposed to

be telling us. I'm not sure why this wasn't being used any more.

If we find any missing updates, it may be because the inset dispatch
stuff wasn't doing its job.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35634 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-10-13 18:06:01 +00:00
parent 2e1d9ee944
commit 07fd1d6b63

View File

@ -1854,12 +1854,10 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
}
cur.recordUndo();
FuncRequest fr(LFUN_INSET_MODIFY, cmd.argument());
// FIXME There may be some cases where the inset knows that
// single par update would be good enough, but it has no way
// to tell us that at the moment.
inset->dispatch(cur, fr);
dr.screenUpdate(Update::Force | Update::FitCursor);
dr.forceBufferUpdate();
dr.screenUpdate(cur.result().screenUpdate());
if (cur.result().needBufferUpdate())
dr.forceBufferUpdate();
break;
}