From 235312c37621c8143a7bf05706e8b540b67d71c7 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Tue, 28 Aug 2007 18:13:17 +0000 Subject: [PATCH] * 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 --- src/frontends/WorkArea.cpp | 2 +- src/insets/InsetCollapsable.cpp | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/frontends/WorkArea.cpp b/src/frontends/WorkArea.cpp index 8ae29add12..ee77b6d4b0 100644 --- a/src/frontends/WorkArea.cpp +++ b/src/frontends/WorkArea.cpp @@ -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) { diff --git a/src/insets/InsetCollapsable.cpp b/src/insets/InsetCollapsable.cpp index db4eeff37d..4dcdfc19b7 100644 --- a/src/insets/InsetCollapsable.cpp +++ b/src/insets/InsetCollapsable.cpp @@ -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(); }