diff options
Diffstat (limited to 'cervisia/tooltip.cpp')
-rw-r--r-- | cervisia/tooltip.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cervisia/tooltip.cpp b/cervisia/tooltip.cpp index df3c4977..728945ca 100644 --- a/cervisia/tooltip.cpp +++ b/cervisia/tooltip.cpp @@ -72,12 +72,12 @@ TQString truncateLines(const TQString& text, if (numberOfLines <= maxNumberOfLines) return text; - const TQChar* tqunicode(text.tqunicode()); - for (int count(maxNumberOfLines); count; ++tqunicode) - if (*tqunicode == newLine) + const TQChar* unicode(text.unicode()); + for (int count(maxNumberOfLines); count; ++unicode) + if (*unicode == newLine) --count; - return text.left(tqunicode - text.tqunicode() - 1); + return text.left(unicode - text.unicode() - 1); } |