Out by one correction

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53970 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2008-06-04 06:14:40 +00:00
parent c20b3423a5
commit c5c857c9a2

View File

@@ -6727,10 +6727,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);