Fix unused variable warning in wxRichText

Don't define variable 'bottom' which is initialised but not
referenced any longer (since ab4b767).
This commit is contained in:
Dimitri Schoolwerth
2015-05-31 04:53:59 +04:00
parent 4b073ab140
commit 9a922899de

View File

@@ -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)