mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
Fix bug #10901.
This commit is contained in:
parent
d6068b3aaa
commit
9762ba5d38
@ -22,8 +22,7 @@ namespace lyx {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* This class represents a particular LyX "cite engine", which defines the features
|
* This class represents a particular LyX "cite engine", which defines the features
|
||||||
* of a particular citation backend such as natbib or biblatex. In that sense, it is more like
|
* of a particular citation backend such as natbib or biblatex.
|
||||||
* a LaTeX package, where a layout file corresponds to a LaTeX class.
|
|
||||||
*
|
*
|
||||||
* In general, a given cite engine can be used with any document class. That said,
|
* In general, a given cite engine can be used with any document class. That said,
|
||||||
* one cite engine may `require' another, or it may `exclude' some other cite engine.
|
* one cite engine may `require' another, or it may `exclude' some other cite engine.
|
||||||
@ -101,7 +100,7 @@ private:
|
|||||||
/// the LaTeX packages on which this depends, if any
|
/// the LaTeX packages on which this depends, if any
|
||||||
std::vector<std::string> package_list_;
|
std::vector<std::string> package_list_;
|
||||||
// these are mutable because they are used to cache the results
|
// these are mutable because they are used to cache the results
|
||||||
// or an otherwise const operation.
|
// of an otherwise const operation.
|
||||||
///
|
///
|
||||||
mutable bool checked_;
|
mutable bool checked_;
|
||||||
///
|
///
|
||||||
|
@ -480,22 +480,22 @@ void InsetPrintIndex::doDispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
|
|
||||||
case LFUN_INSET_MODIFY: {
|
case LFUN_INSET_MODIFY: {
|
||||||
if (cmd.argument() == from_ascii("toggle-subindex")) {
|
if (cmd.argument() == from_ascii("toggle-subindex")) {
|
||||||
string cmd = getCmdName();
|
string scmd = getCmdName();
|
||||||
if (contains(cmd, "printindex"))
|
if (contains(scmd, "printindex"))
|
||||||
cmd = subst(cmd, "printindex", "printsubindex");
|
scmd = subst(scmd, "printindex", "printsubindex");
|
||||||
else
|
else
|
||||||
cmd = subst(cmd, "printsubindex", "printindex");
|
scmd = subst(scmd, "printsubindex", "printindex");
|
||||||
cur.recordUndo();
|
cur.recordUndo();
|
||||||
setCmdName(cmd);
|
setCmdName(scmd);
|
||||||
break;
|
break;
|
||||||
} else if (cmd.argument() == from_ascii("check-printindex*")) {
|
} else if (cmd.argument() == from_ascii("check-printindex*")) {
|
||||||
string cmd = getCmdName();
|
string scmd = getCmdName();
|
||||||
if (suffixIs(cmd, '*'))
|
if (suffixIs(scmd, '*'))
|
||||||
break;
|
break;
|
||||||
cmd += '*';
|
scmd += '*';
|
||||||
cur.recordUndo();
|
cur.recordUndo();
|
||||||
setParam("type", docstring());
|
setParam("type", docstring());
|
||||||
setCmdName(cmd);
|
setCmdName(scmd);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
InsetCommandParams p(INDEX_PRINT_CODE);
|
InsetCommandParams p(INDEX_PRINT_CODE);
|
||||||
|
Loading…
Reference in New Issue
Block a user