]> git.lyx.org Git - features.git/commitdiff
* InsetCollapsable::setStatus(): remove the Buffer::changed() signal emission. This...
authorAbdelrazak Younes <younes@lyx.org>
Tue, 28 Aug 2007 18:13:17 +0000 (18:13 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 28 Aug 2007 18:13:17 +0000 (18:13 +0000)
* 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
src/insets/InsetCollapsable.cpp

index 8ae29add12deca170e2210c6fa11fc6a6597dc7e..ee77b6d4b0eb24f805cb2ad01596638bd4697f1e 100644 (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) {
index db4eeff37d415f606c9d8b24d2274d6ea7b84d6f..4dcdfc19b7ba5d434c6d9a15ef5e3d70b22c5dca 100644 (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();
 }