]> git.lyx.org Git - features.git/blobdiff - src/factory.C
Tiny unicode optimization: avoid ucs4->utf8->ucs4 roundtrip
[features.git] / src / factory.C
index 86f6119bcec818f4aedd7496c11e0ee04b75c419..e0211221e11223a39858cf0677679343a094785c 100644 (file)
@@ -166,7 +166,7 @@ InsetBase * createInset(BufferView * bv, FuncRequest const & cmd)
                // Try and generate a valid index entry.
                InsetCommandParams icp("index");
                icp["name"] = cmd.argument().empty() ?
-                       from_utf8(bv->getLyXText()->getStringToIndex(bv->cursor())) :
+                       bv->getLyXText()->getStringToIndex(bv->cursor()) :
                        cmd.argument();
                return new InsetIndex(icp);
        }