git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35983
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if (child->CanMerge(nextChild) && child->Merge(nextChild))
{
nextChild->Dereference();
if (child->CanMerge(nextChild) && child->Merge(nextChild))
{
nextChild->Dereference();
- delete node->GetNext();
+ m_children.Erase(node->GetNext());
// Don't set node -- we'll see if we can merge again with the next
// child.
// Don't set node -- we'll see if we can merge again with the next
// child.
}
wxRichTextObjectList::compatibility_iterator next1 = node1->GetNext();
}
wxRichTextObjectList::compatibility_iterator next1 = node1->GetNext();
+ nextParagraph->GetChildren().Erase(node1);
wxNode* node = m_attributeStack.GetLast();
wxTextAttrEx* attr = (wxTextAttrEx*)node->GetData();
wxNode* node = m_attributeStack.GetLast();
wxTextAttrEx* attr = (wxTextAttrEx*)node->GetData();
+ m_attributeStack.Erase(node);