Skip to content

Commit

Permalink
Fix unused variable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 11, 2016
1 parent 44546e8 commit 0dc5e83
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/core/pal/feature.cpp
Expand Up @@ -1170,19 +1170,6 @@ int FeaturePart::createCurvedCandidatesAlongLine( QList< LabelPosition* >& lPos,
return 0;
}

//calculate overall angle of line
double lineAngle;
double bx = mapShape->x[0];
double by = mapShape->y[0];
double ex = mapShape->x[ mapShape->nbPoints - 1 ];
double ey = mapShape->y[ mapShape->nbPoints - 1 ];
if ( qgsDoubleNear( ey, by ) && qgsDoubleNear( ex, bx ) )
{
lineAngle = 0.0;
}
else
lineAngle = atan2( ey - by, ex - bx );

QLinkedList<LabelPosition*> positions;
double delta = qMax( li->label_height, total_distance / mLF->layer()->pal->line_p );

Expand Down

0 comments on commit 0dc5e83

Please sign in to comment.