Small cleanup.
Set caret position when calling SetSelection. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43501 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4810,11 +4810,11 @@ wxRichTextAttr wxRichTextBuffer::GetStyleForNewParagraph(long pos, bool caretPos
|
||||
}
|
||||
|
||||
/// Submit command to delete this range
|
||||
bool wxRichTextBuffer::DeleteRangeWithUndo(const wxRichTextRange& range, long initialCaretPosition, long WXUNUSED(newCaretPositon), wxRichTextCtrl* ctrl)
|
||||
bool wxRichTextBuffer::DeleteRangeWithUndo(const wxRichTextRange& range, wxRichTextCtrl* ctrl)
|
||||
{
|
||||
wxRichTextAction* action = new wxRichTextAction(NULL, _("Delete"), wxRICHTEXT_DELETE, this, ctrl);
|
||||
|
||||
action->SetPosition(initialCaretPosition);
|
||||
action->SetPosition(ctrl->GetCaretPosition());
|
||||
|
||||
// Set the range to delete
|
||||
action->SetRange(range);
|
||||
|
Reference in New Issue
Block a user