Commit 7870ea1e authored by Robert Knight's avatar Robert Knight
Browse files

Use string_width() to calculate the number of columns needed to draw the...

Use string_width() to calculate the number of columns needed to draw the preedit text, which != the number of characters in the string.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=714942
parent 340670df
......@@ -1056,7 +1056,7 @@ void TerminalDisplay::paintEvent( QPaintEvent* pe )
QRect TerminalDisplay::preeditRect() const
{
const int preeditLength = _inputMethodData.preeditString.count();
const int preeditLength = string_width(_inputMethodData.preeditString);
if ( preeditLength == 0 )
return QRect();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment