From 2960157f8fd233214938d57d3393e90a4a6a9e19 Mon Sep 17 00:00:00 2001 From: Lynix Date: Mon, 5 Dec 2016 16:10:48 +0100 Subject: [PATCH] SDK/TextAreaWidget: Fix insertion with accents --- SDK/src/NDK/Widgets/TextAreaWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDK/src/NDK/Widgets/TextAreaWidget.cpp b/SDK/src/NDK/Widgets/TextAreaWidget.cpp index d59ad1975..04a6af718 100644 --- a/SDK/src/NDK/Widgets/TextAreaWidget.cpp +++ b/SDK/src/NDK/Widgets/TextAreaWidget.cpp @@ -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();