diff --git a/src/richtext/richtextbuffer.cpp b/src/richtext/richtextbuffer.cpp index 73484f6895..b8f8822b6c 100644 --- a/src/richtext/richtextbuffer.cpp +++ b/src/richtext/richtextbuffer.cpp @@ -2169,7 +2169,6 @@ bool wxRichTextParagraphLayoutBox::Layout(wxDC& dc, wxRichTextDrawingContext& co // Check the bottom edge of any floating object if (wxRichTextBuffer::GetFloatingLayoutMode() && GetFloatCollector() && GetFloatCollector()->HasFloats()) { - int bottom = GetFloatCollector()->GetLastRectBottom(); // The floating objects are positioned relative to entire buffer, not this box int maxFloatHeight = GetFloatCollector()->GetLastRectBottom() - GetPosition().y - topMargin; if (maxFloatHeight > maxHeight)