SDK/TextAreaWidget: Fix insertion with accents

This commit is contained in:
Lynix
2016-12-05 16:10:48 +01:00
parent 60fee4bba6
commit 2960157f8f

View File

@@ -230,7 +230,7 @@ namespace Ndk
else
{
Nz::String currentText = m_drawer.GetText();
currentText.Insert(m_cursorPosition, text);
currentText.Insert(currentText.GetCharacterPosition(m_cursorPosition), text);
SetText(currentText);
m_cursorPosition += text.GetLength();