Skip to content

Commit 4fc76c4

Browse files
committedJun 10, 2019
Tweak names
(cherry picked from commit 789a758)
1 parent 8aed54e commit 4fc76c4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎src/core/pal/feature.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,15 +1004,15 @@ LabelPosition *FeaturePart::curvedPlacementAtOffset( PointSet *path_positions, d
10041004
for ( int i = 0; i < li->char_num; i++ )
10051005
{
10061006
LabelInfo::CharacterInfo &ci = li->char_info[i];
1007-
double start_x, start_y;
1008-
if ( !nextCharPosition( ci.width, path_distances[endindex], path_positions, endindex, _distance, start_x, start_y, endLabelX, endLabelY ) )
1007+
double characterStartX, characterStartY;
1008+
if ( !nextCharPosition( ci.width, path_distances[endindex], path_positions, endindex, _distance, characterStartX, characterStartY, endLabelX, endLabelY ) )
10091009
{
10101010
return nullptr;
10111011
}
10121012
if ( i == 0 )
10131013
{
1014-
startLabelX = start_x;
1015-
startLabelY = start_y;
1014+
startLabelX = characterStartX;
1015+
startLabelY = characterStartY;
10161016
}
10171017
}
10181018

@@ -1176,7 +1176,7 @@ int FeaturePart::createCurvedCandidatesAlongLine( QList< LabelPosition * > &lPos
11761176
if ( totalCharacterWidth > total_distance )
11771177
{
11781178
// label doesn't fit on this line, don't waste time trying to make candidates
1179-
// TODO - in future allow this, and allow label to overlap end of line
1179+
// TODO: in future allow this, and allow label to overlap end of line
11801180
return 0;
11811181
}
11821182

0 commit comments

Comments
 (0)
Please sign in to comment.