mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 11:00:44 -06:00
19 lines
586 B
Plaintext
19 lines
586 B
Plaintext
diff --git a/libs/qscintilla/Qt4Qt5/qsciscintilla.cpp b/libs/qscintilla/Qt4Qt5/qsciscintilla.cpp
|
|
index d40b742..4c9fe75 100644
|
|
--- a/libs/qscintilla/Qt4Qt5/qsciscintilla.cpp
|
|
+++ b/libs/qscintilla/Qt4Qt5/qsciscintilla.cpp
|
|
@@ -386,7 +386,12 @@ void QsciScintilla::callTip()
|
|
ct = ct_entries.join("\n");
|
|
}
|
|
|
|
- QByteArray ct_ba = ct.toLatin1();
|
|
+ QByteArray ct_ba;
|
|
+ if (isUtf8())
|
|
+ ct_ba = ct.toUtf8();
|
|
+ else
|
|
+ ct_ba = ct.toLatin1();
|
|
+
|
|
const char *cts = ct_ba.data();
|
|
|
|
SendScintilla(SCI_CALLTIPSHOW, adjustedCallTipPosition(shift), cts);
|