X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffactory.C;h=19092859965d9c53a562103e3f8a4a8322488d1f;hb=80328d2053869dc089c23c25adbed4167d7bf0b1;hp=5f08b9dfb07b81d5fda923905334ce8a8cba9961;hpb=7b031e5d866f7193c6fedb19c16321f25c89067b;p=lyx.git diff --git a/src/factory.C b/src/factory.C index 5f08b9dfb0..1909285996 100644 --- a/src/factory.C +++ b/src/factory.C @@ -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); }