Commit 6711db2c authored by Christoffer Ackelman's avatar Christoffer Ackelman

QT: Fixed a bug when converting an empty QString to char* with latin1 encoding

parent 00e83156
......@@ -53,7 +53,7 @@
QString fl(const char* text);
#ifndef qPrintableLatin1
#define qPrintableLatin1(string) (string).toLatin1().data()
#define qPrintableLatin1(string) ((string).isEmpty() ? (char*)"" : (string).toLatin1().data())
#endif
QString convert_utf8(const char* str);
QString translate_utf8(const char* str);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment