Don't delete composite objects when defragmenting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1430,8 +1430,12 @@ bool wxRichTextCompositeObject::Defragment(wxRichTextDrawingContext& context, co
|
||||
{
|
||||
wxRichTextCompositeObject* composite = wxDynamicCast(child, wxRichTextCompositeObject);
|
||||
if (composite)
|
||||
{
|
||||
composite->Defragment(context);
|
||||
|
||||
node = node->GetNext();
|
||||
}
|
||||
else
|
||||
{
|
||||
// Optimization: if there are no virtual attributes, we won't need to
|
||||
// to split objects in order to paint individually attributed chunks.
|
||||
// So only merge in this case.
|
||||
@@ -1509,6 +1513,7 @@ bool wxRichTextCompositeObject::Defragment(wxRichTextDrawingContext& context, co
|
||||
node = node->GetNext();
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
node = node->GetNext();
|
||||
}
|
||||
|
Reference in New Issue
Block a user