]> git.lyx.org Git - lyx.git/blobdiff - src/factory.C
* src/tabular.[Ch]: simplify plaintext methods, because there
[lyx.git] / src / factory.C
index 5f08b9dfb07b81d5fda923905334ce8a8cba9961..19092859965d9c53a562103e3f8a4a8322488d1f 100644 (file)
@@ -173,7 +173,7 @@ InsetBase * createInset(BufferView * bv, FuncRequest const & cmd)
                // Try and generate a valid index entry.
                InsetCommandParams icp("index");
                icp["name"] = cmd.argument().empty() ?
-                       bv->getLyXText()->getStringToIndex(bv->cursor()) :
+                       bv->cursor().innerText()->getStringToIndex(bv->cursor()) :
                        cmd.argument();
                return new InsetIndex(icp);
        }
@@ -181,7 +181,7 @@ InsetBase * createInset(BufferView * bv, FuncRequest const & cmd)
        case LFUN_NOMENCL_INSERT: {
                InsetCommandParams icp("nomenclature");
                icp["symbol"] = cmd.argument().empty() ?
-                       bv->getLyXText()->getStringToIndex(bv->cursor()) :
+                       bv->cursor().innerText()->getStringToIndex(bv->cursor()) :
                        cmd.argument();
                return new InsetNomencl(icp);
        }