Fixed a bug that prevented floating objects from being updated correctly

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2014-02-13 11:47:13 +00:00
parent ee1621a9c8
commit 5366d4bd97

View File

@@ -1692,11 +1692,14 @@ void wxRichTextCompositeObject::Invalidate(const wxRichTextRange& invalidRange)
}
else if (child->IsTopLevel())
{
// Not sure why we did this, but it stops updated layout happening for floating objects.
#if 0
if (wxRichTextBuffer::GetFloatingLayoutMode() && child->IsFloating() && GetBuffer()->GetFloatCollector() && GetBuffer()->GetFloatCollector()->HasFloat(child))
{
// Don't invalidate subhierarchy if we've already been laid out
}
else
#endif
{
if (invalidRange == wxRICHTEXT_NONE)
child->Invalidate(wxRICHTEXT_NONE);