From 9a922899de42deb69c604b404e9d02c5d2b7ba03 Mon Sep 17 00:00:00 2001 From: Dimitri Schoolwerth Date: Sun, 31 May 2015 04:53:59 +0400 Subject: [PATCH] Fix unused variable warning in wxRichText Don't define variable 'bottom' which is initialised but not referenced any longer (since ab4b767). --- src/richtext/richtextbuffer.cpp | 1 - 1 file changed, 1 deletion(-) 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)