diff --git a/include/wx/richtext/richtextbuffer.h b/include/wx/richtext/richtextbuffer.h index 4d0d3f7b9b..604229a8c4 100644 --- a/include/wx/richtext/richtextbuffer.h +++ b/include/wx/richtext/richtextbuffer.h @@ -6025,6 +6025,11 @@ public: */ void MakeObject(wxRichTextObject* obj) { m_objectAddress.Create(m_buffer, obj); } + /** + Sets the existing and new objects, for use with wxRICHTEXT_CHANGE_OBJECT. + */ + void SetOldAndNewObjects(wxRichTextObject* oldObj, wxRichTextObject* newObj) { SetObject(oldObj); StoreObject(newObj); } + /** Calculate arrays for refresh optimization. */ diff --git a/interface/wx/richtext/richtextbuffer.h b/interface/wx/richtext/richtextbuffer.h index a345f04c05..2636f83fc5 100644 --- a/interface/wx/richtext/richtextbuffer.h +++ b/interface/wx/richtext/richtextbuffer.h @@ -5883,6 +5883,11 @@ public: */ void MakeObject(wxRichTextObject* obj) { m_objectAddress.Create(m_buffer, obj); } + /** + Sets the existing and new objects, for use with wxRICHTEXT_CHANGE_OBJECT. + */ + void SetOldAndNewObjects(wxRichTextObject* oldObj, wxRichTextObject* newObj); + /** Calculate arrays for refresh optimization. */