From c781f7cb45220f4eff19bdd7be5f76315f080ad5 Mon Sep 17 00:00:00 2001 From: Lynix Date: Mon, 5 Dec 2016 20:39:33 +0100 Subject: [PATCH] SDK/TextAreaWidget: Improve glyph selection --- 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 53f196f7c..8d5e51535 100644 --- a/SDK/src/NDK/Widgets/TextAreaWidget.cpp +++ b/SDK/src/NDK/Widgets/TextAreaWidget.cpp @@ -60,7 +60,7 @@ namespace Ndk for (; i < upperLimit - 1; ++i) { Nz::Rectf bounds = m_drawer.GetGlyph(i).bounds; - if (x < bounds.x + bounds.width) + if (x < bounds.x + bounds.width * 0.75f) break; }