mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
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:
parent
698bf834cf
commit
0a24167e51
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user