mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-02 12:31:04 +00:00
Version 1.2.16: Fix text processing crash in OS X 10.6.
This commit is contained in:
parent
87d6081408
commit
f3eac6b259
@ -27,7 +27,7 @@ inline int32 countBlockHeight(const ITextBlock *b, const style::TextStyle *st) {
|
||||
|
||||
bool chIsBad(QChar ch) {
|
||||
#ifdef OS_MAC_OLD
|
||||
if (cIsSnowLeopard() && (ch == 8207 || ch == 8206)) {
|
||||
if (cIsSnowLeopard() && (ch == 8207 || ch == 8206 || ch == 8288)) {
|
||||
return true;
|
||||
}
|
||||
#endif // OS_MAC_OLD
|
||||
|
@ -154,6 +154,18 @@ public:
|
||||
void parseWords(QFixed minResizeWidth, int32 blockFrom) {
|
||||
LineBreakHelper lbh;
|
||||
|
||||
// Helper for debugging crashes in text processing.
|
||||
//
|
||||
// auto debugChars = QString();
|
||||
// debugChars.reserve(str.size() * 7);
|
||||
// for (const auto ch : str) {
|
||||
// debugChars.append(
|
||||
// "0x").append(
|
||||
// QString::number(ch.unicode(), 16).toUpper()).append(
|
||||
// ' ');
|
||||
// }
|
||||
// LOG(("Text: %1, chars: %2").arg(str).arg(debugChars));
|
||||
|
||||
int item = -1;
|
||||
int newItem = eng->findItem(0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user