diff options
Diffstat (limited to 'src/kernel/qtextengine.cpp')
| -rw-r--r-- | src/kernel/qtextengine.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/kernel/qtextengine.cpp b/src/kernel/qtextengine.cpp index f527cd86a..7ada261e9 100644 --- a/src/kernel/qtextengine.cpp +++ b/src/kernel/qtextengine.cpp @@ -819,8 +819,7 @@ static void calcLineBreaks(const TQString &str, TQCharAttributes *charAttributes if (category == TQChar::Other_Surrogate) { // char stop only on first pair - if (uc[i].unicode() >= 0xd800 && uc[i].unicode() < 0xdc00 && i < len-1 - && uc[i+1].unicode() >= 0xdc00 && uc[i+1].unicode() < 0xe000) + if (uc[i].isHighSurrogate() && i < (len - 1) && uc[i + 1].isLowSurrogate()) goto nsm; // ### correctly handle second surrogate } |
