Fix section-select when issued from outliner

Fixes: #8936
This commit is contained in:
Juergen Spitzmueller 2014-03-21 10:21:18 +01:00
parent e60af4e98a
commit a62cfc6024

View File

@ -187,9 +187,15 @@ void TocWidget::doDispatch(Cursor & cur, FuncRequest const & cmd)
{ {
case LFUN_CHANGE_ACCEPT: case LFUN_CHANGE_ACCEPT:
case LFUN_CHANGE_REJECT: case LFUN_CHANGE_REJECT:
dispatch(item.action());
cur.dispatch(tmpcmd);
break;
case LFUN_SECTION_SELECT: case LFUN_SECTION_SELECT:
dispatch(item.action()); dispatch(item.action());
cur.dispatch(tmpcmd); cur.dispatch(tmpcmd);
// necessary to get the selection drawn.
cur.buffer()->changed(true);
break; break;
case LFUN_LABEL_COPY_AS_REF: { case LFUN_LABEL_COPY_AS_REF: {