From 5366d4bd97ff55349931a6b457d3b413c5d1bd70 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 13 Feb 2014 11:47:13 +0000 Subject: [PATCH] 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 --- src/richtext/richtextbuffer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/richtext/richtextbuffer.cpp b/src/richtext/richtextbuffer.cpp index 9c7c461578..33df281789 100644 --- a/src/richtext/richtextbuffer.cpp +++ b/src/richtext/richtextbuffer.cpp @@ -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);