diff --git a/src/ChangeLog b/src/ChangeLog index f6e98f14cc..106558cba4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-11-29 Jean-Marc Lasgouttes + + * text3.C (dispatch): LFUN_INDEX_INSERT: when a selection is set, + do not remove it (this inset behaves differently from the others). + 2005-11-02 Jean-Marc Lasgouttes * lyxlength.h: undefine macros that clash with solaris/x86 (bug 992) diff --git a/src/text3.C b/src/text3.C index d40a82f3cc..33c35675c7 100644 --- a/src/text3.C +++ b/src/text3.C @@ -1614,6 +1614,17 @@ Inset::RESULT LyXText::dispatch(FuncRequest const & cmd) break; } + case LFUN_INDEX_INSERT: { + Inset * inset = createInset(cmd); + if (inset) { + BufferView * bv = cmd.view(); + if (bv->insertInset(inset)) + inset->edit(bv); + else + delete inset; + } + break; + } #if 0 case LFUN_INSET_LIST: @@ -1637,7 +1648,6 @@ Inset::RESULT LyXText::dispatch(FuncRequest const & cmd) case LFUN_INSERT_URL: case LFUN_INSET_EXTERNAL: - case LFUN_INDEX_INSERT: // Just open the inset doInsertInset(this, cmd, true, false); break;