Skip to content
Permalink
Browse files

Fix unused variable warning

  • Loading branch information
nyalldawson committed Oct 14, 2016
1 parent de85fdd commit 4b059e044347268f211c86395a6aff3dfdd74ee1
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 4b059e0

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