From: Julian Smart Date: Tue, 24 Sep 2013 12:05:54 +0000 (+0000) Subject: Added wxRichTextAction::SetOldAndNewObjects for clarity when submitting a wxRICHTEXT_... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e490db597a874c5f0683aa029e7fc02af50d29d4 Added wxRichTextAction::SetOldAndNewObjects for clarity when submitting a wxRICHTEXT_CHANGE_OBJECT command. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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. */