mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
* 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:
parent
0e7ef480f7
commit
235312c376
@ -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) {
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user