From 07fd1d6b63828a8222e74a3b91df51930b60f993 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Wed, 13 Oct 2010 18:06:01 +0000 Subject: [PATCH] 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 --- src/BufferView.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 12f9c4600e..55366c6b36 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -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; }