more robust. I get spurious crashes in this area... maybe c_str()

instead of data() would be in order, too


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25402 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2008-06-28 18:34:19 +00:00
parent 698bf834cf
commit 0a24167e51

View File

@ -34,6 +34,8 @@ QString toqstr(docstring const & ucs4)
{
// If possible we let qt do the work, since this version does not
// need to be superfast.
if (ucs4.empty())
return QString();
return QString::fromUcs4((uint const *)ucs4.data(), ucs4.length());
}