John's index inset patch.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2656 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2001-09-02 14:40:03 +00:00
parent f5de290c50
commit c9ca51378a
2 changed files with 6 additions and 5 deletions

View File

@ -2982,11 +2982,7 @@ bool BufferView::Pimpl::Dispatch(kb_action action, string const & argument)
InsetCommandParams p("index"); InsetCommandParams p("index");
if (argument.empty()) { if (argument.empty()) {
string const idxstring(bv_->getLyXText()->getStringToIndex(bv_)); string const idxstring(bv_->getLyXText()->getStringToIndex(bv_));
if (!idxstring.empty()) { p.setContents(idxstring);
p.setContents(idxstring);
} else {
break;
}
} else { } else {
p.setContents(argument); p.setContents(argument);
} }

View 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> 2001-09-02 Angus Leeming <a.leeming@ic.ac.uk>
* iterators.h: Added a std:: declaration to the return type of * iterators.h: Added a std:: declaration to the return type of