diff --git a/Telegram/SourceFiles/ui/text/text.cpp b/Telegram/SourceFiles/ui/text/text.cpp index bba57dfadf..fca72d591d 100644 --- a/Telegram/SourceFiles/ui/text/text.cpp +++ b/Telegram/SourceFiles/ui/text/text.cpp @@ -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 diff --git a/Telegram/SourceFiles/ui/text/text_block.cpp b/Telegram/SourceFiles/ui/text/text_block.cpp index d39addab58..2959cec77c 100644 --- a/Telegram/SourceFiles/ui/text/text_block.cpp +++ b/Telegram/SourceFiles/ui/text/text_block.cpp @@ -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);