Commit acee8b75 authored by Christoffer Ackelman's avatar Christoffer Ackelman Committed by Esteban Blanc

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

parent 03bf14b5
......@@ -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