[Konsole-devel] [Bug 303390] Konsole crashes when selecting invalid unicode character.
Francesco Cecconi
francesco.cecconi at gmail.com
Sat Jul 14 23:17:58 UTC 2012
https://bugs.kde.org/show_bug.cgi?id=303390
Francesco Cecconi <francesco.cecconi at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |francesco.cecconi at gmail.com
--- Comment #6 from Francesco Cecconi <francesco.cecconi at gmail.com> ---
Another option could be to use qMax for increment i.
if (chars) {
const QString s = QString::fromUtf16(chars, extendedCharLength);
plainText.append(s);
i += qMax(1, string_width(s));
}
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the konsole-devel
mailing list