Don't merge text objects if they have different identifiers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75132 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -7184,6 +7184,9 @@ bool wxRichTextPlainText::CanMerge(wxRichTextObject* object, wxRichTextDrawingCo
|
|||||||
if (!wxTextAttrEq(GetAttributes(), object->GetAttributes()) || !(m_properties == object->GetProperties()))
|
if (!wxTextAttrEq(GetAttributes(), object->GetAttributes()) || !(m_properties == object->GetProperties()))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (!otherObj->GetId().IsEmpty() && GetId() != otherObj->GetId())
|
||||||
|
return false;
|
||||||
|
|
||||||
// Check if differing virtual attributes makes it impossible to merge
|
// Check if differing virtual attributes makes it impossible to merge
|
||||||
// these strings.
|
// these strings.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user