diff -r 3b1da2848fc7 -r d3bac044e0f0 src/gui/widgets/qlinecontrol.cpp --- a/src/gui/widgets/qlinecontrol.cpp Fri Feb 19 23:40:16 2010 +0200 +++ b/src/gui/widgets/qlinecontrol.cpp Fri Mar 12 15:46:37 2010 +0200 @@ -524,8 +524,11 @@ m_textLayout.draw(painter, offset, selections, clip); if (flags & DrawCursor){ + int cursor = m_cursor; + if (m_preeditCursor != -1) + cursor += m_preeditCursor; if(!m_blinkPeriod || m_blinkStatus) - m_textLayout.drawCursor(painter, offset, m_cursor, m_cursorWidth); + m_textLayout.drawCursor(painter, offset, cursor, m_cursorWidth); } }