mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
f5de290c50
commit
c9ca51378a
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user