]> git.lyx.org Git - features.git/blobdiff - src/factory.C
IU stuff + shuffling things from BV::dispatch to LyXText::dispatch
[features.git] / src / factory.C
index b0f443fdab9ed8ea3a06f3662e6510cce9fe6d71..11340acb54cd9e9e8f5518a40ecdf0c4835663c2 100644 (file)
@@ -154,7 +154,7 @@ InsetBase * createInset(BufferView * bv, FuncRequest const & cmd)
                // Try and generate a valid index entry.
                InsetCommandParams icp("index");
                string const contents = cmd.argument.empty() ?
-                       bv->getLyXText()->getStringToIndex() :
+                       bv->getLyXText()->getStringToIndex(bv->cursor()) :
                        cmd.argument;
                icp.setContents(contents);