mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
Fix 3188, update the labels at each Caption insertion.
http://bugzilla.lyx.org/show_bug.cgi?id=3188 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16965 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
99b41514b6
commit
ce7c45bb43
10
src/text3.C
10
src/text3.C
@ -1129,6 +1129,15 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
case LFUN_THEOREM_INSERT:
|
||||
#endif
|
||||
case LFUN_CAPTION_INSERT:
|
||||
// Open the inset, and move the current selection
|
||||
// inside it.
|
||||
doInsertInset(cur, this, cmd, true, true);
|
||||
cur.posRight();
|
||||
updateLabels(*bv->buffer());
|
||||
// FIXME: We should insert two empty paragraphs before and
|
||||
// after the caption so that the user can go up or down in
|
||||
// order to insert a figure or a table.
|
||||
break;
|
||||
case LFUN_NOTE_INSERT:
|
||||
case LFUN_CHARSTYLE_INSERT:
|
||||
case LFUN_BOX_INSERT:
|
||||
@ -1160,7 +1169,6 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
doInsertInset(cur, this, cmd, true, true);
|
||||
cur.posRight();
|
||||
cur.dispatch(FuncRequest(LFUN_CAPTION_INSERT));
|
||||
updateLabels(cur.buffer());
|
||||
break;
|
||||
|
||||
case LFUN_INDEX_INSERT:
|
||||
|
Loading…
Reference in New Issue
Block a user