summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gui/image/qxbmhandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/image/qxbmhandler.cpp b/src/gui/image/qxbmhandler.cpp
index 9990c9f4d0..8b84ab44c9 100644
--- a/src/gui/image/qxbmhandler.cpp
+++ b/src/gui/image/qxbmhandler.cpp
@@ -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)