Change QString::toAscii to toUtf8 in the embedded filename in XBM.
Change-Id: Iea32f30ac71b35c2792e2523400811fa54c804dc Reviewed-by: Lars Knoll <lars.knoll@nokia.com>bb10
parent
575ede308e
commit
2883a6de40
|
|
@ -190,11 +190,11 @@ static bool write_xbm_image(const QImage &sourceImage, QIODevice *device, const
|
|||
int msize = s.length() + 100;
|
||||
char *buf = new char[msize];
|
||||
|
||||
qsnprintf(buf, msize, "#define %s_width %d\n", s.toAscii().data(), w);
|
||||
qsnprintf(buf, msize, "#define %s_width %d\n", s.toUtf8().data(), w);
|
||||
device->write(buf, qstrlen(buf));
|
||||
qsnprintf(buf, msize, "#define %s_height %d\n", s.toAscii().data(), h);
|
||||
qsnprintf(buf, msize, "#define %s_height %d\n", s.toUtf8().data(), h);
|
||||
device->write(buf, qstrlen(buf));
|
||||
qsnprintf(buf, msize, "static char %s_bits[] = {\n ", s.toAscii().data());
|
||||
qsnprintf(buf, msize, "static char %s_bits[] = {\n ", s.toUtf8().data());
|
||||
device->write(buf, qstrlen(buf));
|
||||
|
||||
if (image.format() != QImage::Format_MonoLSB)
|
||||
|
|
|
|||
Loading…
Reference in New Issue