]> git.lyx.org Git - features.git/commitdiff
John's index inset patch.
authorAngus Leeming <leeming@lyx.org>
Sun, 2 Sep 2001 14:40:03 +0000 (14:40 +0000)
committerAngus Leeming <leeming@lyx.org>
Sun, 2 Sep 2001 14:40:03 +0000 (14:40 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2656 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView_pimpl.C
src/ChangeLog

index ac27371b98df6b37e21c98c5a18d38fc1f7b474a..d8532ad1bcba1768de42fddce793ce5de492d6fd 100644 (file)
@@ -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);
                }
index b31f17b71023bd40bf05be34bec877075c93bc58..1cc42bcf86f45cf780d506fb6f675525717be83b 100644 (file)
@@ -1,3 +1,8 @@
+2001-09-02  John Levon  <moz@compsoc.man.ac.uk>
+
+       * BufferView_pimpl.C: allow to create index inset even if
+         string is empty
 2001-09-02  Angus Leeming  <a.leeming@ic.ac.uk>
 
        * iterators.h: Added a std:: declaration to the return type of