]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed #13833: wxRichTextCtrl: 'Copy' can grab an extra character
authorJulian Smart <julian@anthemion.co.uk>
Thu, 5 Jan 2012 14:08:52 +0000 (14:08 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 5 Jan 2012 14:08:52 +0000 (14:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/richtext/richtextbuffer.cpp

index d0d2fecb9722755e5e97054d7331e71d51218bc4..924a08c226fbdf1f07824c5036f77fe8b0f68ca4 100644 (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);