From 9c8e10ad37434a8801f2a5c3d4675cfddd61635d Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Wed, 4 Jun 2008 06:14:59 +0000 Subject: [PATCH] Out by one correction git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/richtext/richtextbuffer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/richtext/richtextbuffer.cpp b/src/richtext/richtextbuffer.cpp index b25bd7ae0a..0135fa961f 100644 --- a/src/richtext/richtextbuffer.cpp +++ b/src/richtext/richtextbuffer.cpp @@ -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); -- 2.45.2