Skip to content
Permalink
Browse files

Fix unused variable warning

  • Loading branch information
nyalldawson committed Oct 11, 2016
1 parent 44546e8 commit 0dc5e836929770e61e3948335ed40ca46aad384b
Showing with 0 additions and 13 deletions.
  1. +0 −13 src/core/pal/feature.cpp
@@ -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 );

0 comments on commit 0dc5e83

Please sign in to comment.
You can’t perform that action at this time.