From: Angus Leeming Date: Sun, 2 Sep 2001 14:40:03 +0000 (+0000) Subject: John's index inset patch. X-Git-Tag: 1.6.10~20690 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=c9ca51378a805a84f4c846b779017fe4f502fbb2;p=features.git John's index inset patch. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2656 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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