diff --git a/src/BufferView_pimpl.C b/src/BufferView_pimpl.C index ac27371b98..d8532ad1bc 100644 --- a/src/BufferView_pimpl.C +++ b/src/BufferView_pimpl.C @@ -2982,11 +2982,7 @@ bool BufferView::Pimpl::Dispatch(kb_action action, string const & argument) InsetCommandParams p("index"); if (argument.empty()) { string const idxstring(bv_->getLyXText()->getStringToIndex(bv_)); - if (!idxstring.empty()) { - p.setContents(idxstring); - } else { - break; - } + p.setContents(idxstring); } else { p.setContents(argument); } diff --git a/src/ChangeLog b/src/ChangeLog index b31f17b710..1cc42bcf86 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2001-09-02 John Levon + + * BufferView_pimpl.C: allow to create index inset even if + string is empty + 2001-09-02 Angus Leeming * iterators.h: Added a std:: declaration to the return type of