Out by one correction

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2008-06-04 06:14:59 +00:00
parent 89edb75e59
commit 9c8e10ad37

View 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);