Add missing cur.forceBufferUpdate() to LFUN_BRANCH_(DE)ACTIVATE.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36598 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2010-11-29 16:50:22 +00:00
parent 940ab1261b
commit dc9d39dafe

View File

@ -134,7 +134,11 @@ void InsetBranch::doDispatch(Cursor & cur, FuncRequest & cmd)
if (!our_branch)
break;
}
our_branch->setSelected(cmd.action() == LFUN_BRANCH_ACTIVATE);
bool const activate = (cmd.action() == LFUN_BRANCH_ACTIVATE);
if (our_branch->isSelected() != activate) {
our_branch->setSelected(activate);
cur.forceBufferUpdate();
}
break;
}
case LFUN_INSET_TOGGLE: