From d6e02d486b4b90d4e7e9bc7881d2a63c54a97b35 Mon Sep 17 00:00:00 2001 From: Lynix Date: Mon, 5 Dec 2016 15:17:11 +0100 Subject: [PATCH] SDK/TextAreaWidget: Fix cursor position after inserting special characters --- 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 2170af91e..d59ad1975 100644 --- a/SDK/src/NDK/Widgets/TextAreaWidget.cpp +++ b/SDK/src/NDK/Widgets/TextAreaWidget.cpp @@ -233,7 +233,7 @@ namespace Ndk currentText.Insert(m_cursorPosition, text); SetText(currentText); - m_cursorPosition += text.GetSize(); + m_cursorPosition += text.GetLength(); } RefreshCursor();