Fixed two out by one errors

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51942 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2008-02-20 20:33:18 +00:00
parent 8fda05d726
commit 4b3483e73b
2 changed files with 2 additions and 2 deletions

View File

@@ -2339,7 +2339,7 @@ void wxRichTextCtrl::Remove(long from, long to)
{
SelectNone();
GetBuffer().DeleteRangeWithUndo(wxRichTextRange(from, to), this);
GetBuffer().DeleteRangeWithUndo(wxRichTextRange(from, to-1), this);
LayoutContent();
if (!IsFrozen())