Corrections to take into account that range in the API has an end position
that is 1 more than the last affected position git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -380,8 +380,16 @@ public:
|
||||
virtual void SelectNone();
|
||||
|
||||
/// Get/set the selection range in character positions. -1, -1 means no selection.
|
||||
const wxRichTextRange& GetSelectionRange() const { return m_selectionRange; }
|
||||
void SetSelectionRange(const wxRichTextRange& range) { m_selectionRange = range; }
|
||||
/// The range is in API convention, i.e. a single character selection is denoted
|
||||
/// by (n, n+1)
|
||||
wxRichTextRange GetSelectionRange() const;
|
||||
void SetSelectionRange(const wxRichTextRange& range);
|
||||
|
||||
/// Get/set the selection range in character positions. -1, -1 means no selection.
|
||||
/// The range is in internal format, i.e. a single character selection is denoted
|
||||
/// by (n, n)
|
||||
const wxRichTextRange& GetInternalSelectionRange() const { return m_selectionRange; }
|
||||
void SetInternalSelectionRange(const wxRichTextRange& range) { m_selectionRange = range; }
|
||||
|
||||
/// Add a new paragraph of text to the end of the buffer
|
||||
virtual wxRichTextRange AddParagraph(const wxString& text);
|
||||
|
Reference in New Issue
Block a user