Fixed #13833: wxRichTextCtrl: 'Copy' can grab an extra character

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2012-01-05 14:08:52 +00:00
parent 18dd537805
commit 61e6149e58

View File

@ -2690,7 +2690,7 @@ bool wxRichTextParagraphLayoutBox::CopyFragment(const wxRichTextRange& range, wx
topTailRange.SetEnd(fragment.GetOwnRange().GetEnd());
}
if (topTailRange.GetStart() < (lastPara->GetRange().GetEnd()-1))
if (topTailRange.GetStart() < lastPara->GetRange().GetEnd())
{
lastPara->DeleteRange(topTailRange);