branch | RCL_3 |
changeset 5 | d3bac044e0f0 |
parent 4 | 3b1da2848fc7 |
--- a/src/gui/kernel/qdnd_x11.cpp Fri Feb 19 23:40:16 2010 +0200 +++ b/src/gui/kernel/qdnd_x11.cpp Fri Mar 12 15:46:37 2010 +0200 @@ -617,7 +617,7 @@ // so it should be safe to check that the second char is 0 // to verify that it is utf16 if (data.size() > 1 && data.at(1) == 0) - return QString::fromUtf16(reinterpret_cast<const ushort *>(data.constData()), + return QString::fromRawData((const QChar *)data.constData(), data.size() / 2).split(QLatin1Char('\n')).first().toLatin1(); } }