From: Guillaume Munch Date: Tue, 12 Jul 2016 13:27:40 +0000 (+0100) Subject: Branch-invert: Record undo and update Toc X-Git-Tag: 2.3.0alpha1~1281 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=0fba5c4e8b7c1ee847a4bca39c021569b22b51f1;p=features.git Branch-invert: Record undo and update Toc --- diff --git a/src/insets/InsetBranch.cpp b/src/insets/InsetBranch.cpp index a87cf05337..53007f604b 100644 --- a/src/insets/InsetBranch.cpp +++ b/src/insets/InsetBranch.cpp @@ -189,7 +189,11 @@ void InsetBranch::doDispatch(Cursor & cur, FuncRequest & cmd) break; } case LFUN_BRANCH_INVERT: + cur.recordUndoInset(this); params_.inverted = !params_.inverted; + // what we really want here is a TOC update, but that means + // a full buffer update + cur.forceBufferUpdate(); break; case LFUN_BRANCH_ADD: lyx::dispatch(FuncRequest(LFUN_BRANCH_ADD, params_.branch));