]> git.lyx.org Git - features.git/commitdiff
Fix initial numbering of foot notes.
authorAbdelrazak Younes <younes@lyx.org>
Fri, 2 Nov 2007 18:19:45 +0000 (18:19 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Fri, 2 Nov 2007 18:19:45 +0000 (18:19 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21385 a592a061-630c-0410-9148-cb99ea01b6c8

src/Text3.cpp

index 79f48c1bb58f5a44cf5b11409717779b92a214e9..3d77ab78f0bfa595fd26254639a8b110d4c2122b 100644 (file)
@@ -1161,10 +1161,12 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
        case LFUN_THEOREM_INSERT:
 #endif
        case LFUN_CAPTION_INSERT:
+       case LFUN_FOOTNOTE_INSERT:
                // Open the inset, and move the current selection
                // inside it.
                doInsertInset(cur, this, cmd, true, true);
                cur.posRight();
+               // These insets are numbered.
                updateLabels(bv->buffer());
                break;
        case LFUN_NOTE_INSERT:
@@ -1174,7 +1176,6 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
        case LFUN_BIBITEM_INSERT:
        case LFUN_ERT_INSERT:
        case LFUN_LISTING_INSERT:
-       case LFUN_FOOTNOTE_INSERT:
        case LFUN_MARGINALNOTE_INSERT:
        case LFUN_OPTIONAL_INSERT:
        case LFUN_ENVIRONMENT_INSERT: