From 46944bebe418ea1a00694c610bae37596c7c9ade Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 13 Feb 2014 11:46:59 +0000 Subject: [PATCH] Fixed a bug that prevented floating objects from being updated correctly git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75876 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 46f0628e6c..77f0a9b151 100644 --- a/src/richtext/richtextbuffer.cpp +++ b/src/richtext/richtextbuffer.cpp @@ -1747,11 +1747,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);