Fix assert in all InsetParamsWidget's for unicode characters (bug #7017)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36194 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2010-11-07 17:38:39 +00:00
parent 624734cbb4
commit 7ff3e84c5d
3 changed files with 3 additions and 3 deletions

View File

@ -81,7 +81,7 @@ docstring GuiHyperlink::dialogToParams() const
else if (fileRB->isChecked())
params["type"] = qstring_to_ucs4("file:");
params.setCmdName("href");
return from_ascii(InsetHyperlink::params2string(params));
return from_utf8(InsetHyperlink::params2string(params));
}

View File

@ -54,7 +54,7 @@ docstring GuiLabel::dialogToParams() const
{
InsetCommandParams params(insetCode());
params["name"] = qstring_to_ucs4(keywordED->text());
return from_ascii(InsetLabel::params2string(params));
return from_utf8(InsetLabel::params2string(params));
}

View File

@ -56,7 +56,7 @@ docstring GuiNomenclature::dialogToParams() const
QString description = descriptionTE->toPlainText();
description.replace('\n',"\\\\");
params["description"] = qstring_to_ucs4(description);
return from_ascii(InsetNomencl::params2string(params));
return from_utf8(InsetNomencl::params2string(params));
}