]> git.saurik.com Git - wxWidgets.git/blobdiff - src/richtext/richtextbuffer.cpp
move 8 copies of the same function to common code
[wxWidgets.git] / 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);