]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiLabel.cpp
On Linux show in crash message box the backtrace
[lyx.git] / src / frontends / qt4 / GuiLabel.cpp
index 535e464430677540b8a0c14cdf3e07c0eff3050e..5d1ea4a3ef6aaa62efc09a43219a9e0954f67eda 100644 (file)
@@ -54,14 +54,14 @@ docstring GuiLabel::dialogToParams() const
 {
        InsetCommandParams params(insetCode());
        params["name"] = qstring_to_ucs4(keywordED->text());
-       return from_ascii(InsetLabel::params2string("label", params));
+       return from_utf8(InsetLabel::params2string(params));
 }
 
 
 bool GuiLabel::initialiseParams(std::string const & data)
 {
        InsetCommandParams p(insetCode());
-       if (!InsetCommand::string2params("label", data, p))
+       if (!InsetCommand::string2params(data, p))
                return false;
        keywordED->setText(toqstr(p["name"]));
        return true;