]> git.saurik.com Git - wxWidgets.git/commitdiff
Out by one correction
authorJulian Smart <julian@anthemion.co.uk>
Wed, 4 Jun 2008 06:14:59 +0000 (06:14 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 4 Jun 2008 06:14:59 +0000 (06:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/richtext/richtextbuffer.cpp

index b25bd7ae0ab9201ad79c515c955c5d3c44e350b4..0135fa961f0fe24953bb16c7881f5343a2139b7d 100644 (file)
@@ -6160,10 +6160,10 @@ bool wxRichTextBuffer::PasteFromClipboard(long position)
                 if (action->GetNewParagraphs().GetChildCount() == 1)
                     action->GetNewParagraphs().SetPartialParagraph(true);
 
-                action->SetPosition(position);
+                action->SetPosition(position+1);
 
                 // Set the range we'll need to delete in Undo
-                action->SetRange(wxRichTextRange(position, position));
+                action->SetRange(wxRichTextRange(position+1, position+1));
 
                 SubmitAction(action);