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:
@@ -2169,7 +2169,6 @@ bool wxRichTextParagraphLayoutBox::Layout(wxDC& dc, wxRichTextDrawingContext& co
|
|||||||
// Check the bottom edge of any floating object
|
// Check the bottom edge of any floating object
|
||||||
if (wxRichTextBuffer::GetFloatingLayoutMode() && GetFloatCollector() && GetFloatCollector()->HasFloats())
|
if (wxRichTextBuffer::GetFloatingLayoutMode() && GetFloatCollector() && GetFloatCollector()->HasFloats())
|
||||||
{
|
{
|
||||||
int bottom = GetFloatCollector()->GetLastRectBottom();
|
|
||||||
// The floating objects are positioned relative to entire buffer, not this box
|
// The floating objects are positioned relative to entire buffer, not this box
|
||||||
int maxFloatHeight = GetFloatCollector()->GetLastRectBottom() - GetPosition().y - topMargin;
|
int maxFloatHeight = GetFloatCollector()->GetLastRectBottom() - GetPosition().y - topMargin;
|
||||||
if (maxFloatHeight > maxHeight)
|
if (maxFloatHeight > maxHeight)
|
||||||
|
Reference in New Issue
Block a user