Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 15135 → Rev 15134

/trunk/Scribus/scribus/colormgmt/sclcms2colormgmtengineimpl.cpp
90,12 → 90,10
descSize = cmsGetProfileInfo(hIn, cmsInfoDescription, "en", "US", descData, descSize);
if (descSize > 0)
{
uint stringLen = descSize / sizeof(wchar_t);
descData[stringLen] = 0;
if (sizeof(wchar_t) == sizeof(QChar)) {
profileInfo.description = QString::fromUtf16((ushort *) descData);
profileInfo.description = QString::fromUtf16((ushort *) descData, descSize / sizeof(wchar_t));
} else {
profileInfo.description = QString::fromUcs4((uint *) descData);
profileInfo.description = QString::fromUcs4((uint *) descData, descSize / sizeof(wchar_t));
}
free(descData);
}