From 4bb720a989aa03d937e9839a270f1e9fccb135e2 Mon Sep 17 00:00:00 2001 From: Jinhao Date: Sat, 12 May 2018 06:49:53 +0800 Subject: [PATCH] fix textbox highlight issue --- source/gui/widgets/skeletons/text_editor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/gui/widgets/skeletons/text_editor.cpp b/source/gui/widgets/skeletons/text_editor.cpp index fefaf1ed..f54d5765 100644 --- a/source/gui/widgets/skeletons/text_editor.cpp +++ b/source/gui/widgets/skeletons/text_editor.cpp @@ -1,7 +1,7 @@ /* * A text editor implementation * Nana C++ Library(http://www.nanapro.org) - * Copyright(C) 2003-2017 Jinhao(cnjinhao@hotmail.com) + * Copyright(C) 2003-2018 Jinhao(cnjinhao@hotmail.com) * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at @@ -3340,7 +3340,7 @@ namespace nana{ namespace widgets canvas.rectangle(true); - ent_pos.x += ent_off; + ent_pos.x = pos.x + ent_off; if (rtl)