]> git.lyx.org Git - features.git/commitdiff
Fix bug #10901.
authorRichard Heck <rgheck@lyx.org>
Sat, 24 Feb 2018 04:17:57 +0000 (23:17 -0500)
committerRichard Heck <rgheck@lyx.org>
Sat, 24 Feb 2018 04:17:57 +0000 (23:17 -0500)
src/CiteEnginesList.h
src/insets/InsetIndex.cpp

index 24bec03852015130ec8cb5cf2620dc097cd028e6..2f419b4bfe1e7ef9fac35b15db013da21a3b80fe 100644 (file)
@@ -22,8 +22,7 @@ namespace lyx {
 
 /**
  *  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
- *  a LaTeX package, where a layout file corresponds to a LaTeX class.
+ *  of a particular citation backend such as natbib or biblatex.
  *
  *  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.
@@ -101,7 +100,7 @@ private:
        /// the LaTeX packages on which this depends, if any
        std::vector<std::string> package_list_;
        // these are mutable because they are used to cache the results
-       // or an otherwise const operation.
+       // of an otherwise const operation.
        ///
        mutable bool checked_;
        ///
index 584fb280c78d74396d77839092167861bc14f52f..05da188678e31f0008f13186c8c9f0aad9a9e45b 100644 (file)
@@ -480,22 +480,22 @@ void InsetPrintIndex::doDispatch(Cursor & cur, FuncRequest & cmd)
 
        case LFUN_INSET_MODIFY: {
                if (cmd.argument() == from_ascii("toggle-subindex")) {
-                       string cmd = getCmdName();
-                       if (contains(cmd, "printindex"))
-                               cmd = subst(cmd, "printindex", "printsubindex");
+                       string scmd = getCmdName();
+                       if (contains(scmd, "printindex"))
+                               scmd = subst(scmd, "printindex", "printsubindex");
                        else
-                               cmd = subst(cmd, "printsubindex", "printindex");
+                               scmd = subst(scmd, "printsubindex", "printindex");
                        cur.recordUndo();
-                       setCmdName(cmd);
+                       setCmdName(scmd);
                        break;
                } else if (cmd.argument() == from_ascii("check-printindex*")) {
-                       string cmd = getCmdName();
-                       if (suffixIs(cmd, '*'))
+                       string scmd = getCmdName();
+                       if (suffixIs(scmd, '*'))
                                break;
-                       cmd += '*';
+                       scmd += '*';
                        cur.recordUndo();
                        setParam("type", docstring());
-                       setCmdName(cmd);
+                       setCmdName(scmd);
                        break;
                }
                InsetCommandParams p(INDEX_PRINT_CODE);