From 54a82234eb7571d0278ad97cd8c7ebdffced03d4 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 7 Nov 2013 11:06:22 +0000 Subject: [PATCH] Correct the double-clicked word selection when at the end of a paragraph. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/richtext/richtextctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/richtext/richtextctrl.cpp b/src/richtext/richtextctrl.cpp index 173b662dce..7105f187c1 100644 --- a/src/richtext/richtextctrl.cpp +++ b/src/richtext/richtextctrl.cpp @@ -2816,7 +2816,7 @@ bool wxRichTextCtrl::SelectWord(long position) } } if (positionEnd >= para->GetRange().GetEnd()) - positionEnd = para->GetRange().GetEnd(); + positionEnd = para->GetRange().GetEnd()-1; if (positionEnd < positionStart) return false;