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:
parent
18dd537805
commit
61e6149e58
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user