Version 1.2.16: Fix text processing crash in OS X 10.6.

This commit is contained in:
John Preston 2018-04-08 18:21:40 +04:00
parent 87d6081408
commit f3eac6b259
2 changed files with 13 additions and 1 deletions

View File

@ -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

View File

@ -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);