* InsetCollapsable::setStatus(): remove the Buffer::changed() signal emission. This causes a WorkArea redraw before the BufferView metrics update happens.

* WorkArea::dispatch(): replace the redraw() call with a Buffer::changed() signal emission in order to update all views of the Buffer, even though some view won't need the redraw...



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19867 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-08-28 18:13:17 +00:00
parent 0e7ef480f7
commit 235312c376
2 changed files with 1 additions and 5 deletions

View File

@ -214,7 +214,7 @@ void WorkArea::dispatch(FuncRequest const & cmd0, key_modifier::state k)
bool const needRedraw = buffer_view_->workAreaDispatch(cmd);
if (needRedraw)
redraw();
buffer_view_->buffer().changed();
// Skip these when selecting
if (cmd.action != LFUN_MOUSE_MOTION) {

View File

@ -601,10 +601,6 @@ void InsetCollapsable::setStatus(Cursor & cur, CollapseStatus status)
setButtonLabel();
if (status_ == Collapsed)
cur.leaveInset(*this);
// Because the collapse status is part of the inset and thus an
// integral part of the Buffer contents a changed status must be
// signaled to all views of current buffer.
cur.bv().buffer().changed();
}