Skip to content

Commit

Permalink
Fix set but not used warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 17, 2022
1 parent a628958 commit eb7812e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/core/qgslegendrenderer.cpp
Expand Up @@ -488,7 +488,6 @@ int QgsLegendRenderer::setColumns( QList<LegendComponentGroup> &componentGroups
int currentColumn = 0;
int currentColumnGroupCount = 0; // number of groups in current column
double currentColumnHeight = 0;
double closedColumnsHeight = 0;
int autoPlacedBreaks = 0;

// Calculate the expected average space between items
Expand Down Expand Up @@ -540,7 +539,6 @@ int QgsLegendRenderer::setColumns( QList<LegendComponentGroup> &componentGroups
if ( !group.placeColumnBreakBeforeGroup )
autoPlacedBreaks++;
currentColumnGroupCount = 0;
closedColumnsHeight += currentColumnHeight;
currentColumnHeight = group.size.height();
}
else
Expand Down

0 comments on commit eb7812e

Please sign in to comment.