Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 11453 → Rev 11455

/trunk/Scribus/scribus/pdflib_core.cpp
275,6 → 275,8
}
QTextCodec *codec = QTextCodec::codecForName("ISO-10646-UCS-2");
QByteArray cres = codec->fromUnicode( tmp );
#ifndef WORDS_BIGENDIAN
// on little endian systems we ned to swap bytes:
uchar sw;
for(int d = 0; d < cres.size()-1; d += 2)
{
282,6 → 284,7
cres[d] = cres[d+1];
cres[d+1] = sw;
}
#endif
return cres;
}