]> git.lyx.org Git - features.git/blobdiff - src/text3.C
Unicode: Avoid another from_utf8(to_utf8()) roundtrip
[features.git] / src / text3.C
index 2ebf885a66327c7419fa536d1437e3f1c660ef93..649f9067aee8e720bb13fe604ac970a7d39c469e 100644 (file)
@@ -1105,8 +1105,7 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
                InsetCommandParams p("label");
                // Try to generate a valid label
                p["name"] = (cmd.argument().empty()) ?
-                       // FIXME UNICODE
-                       from_utf8(cur.getPossibleLabel()) :
+                       cur.getPossibleLabel() :
                        cmd.argument();
                string const data = InsetCommandMailer::params2string("label", p);