Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[labeling] Fix curved labeling fails when line feature geometry
begins with small segments

Fixes #28699

(cherry picked from commit 328b0af)
  • Loading branch information
nyalldawson committed Jun 3, 2019
1 parent c634150 commit e0b184e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/pal/feature.cpp
Expand Up @@ -1011,7 +1011,7 @@ LabelPosition *FeaturePart::curvedPlacementAtOffset( PointSet *path_positions, d
{
LabelInfo::CharacterInfo &ci = li->char_info[i];
double start_x, start_y, end_x, end_y;
if ( !nextCharPosition( ci.width, path_distances[index], path_positions, endindex, _distance, start_x, start_y, end_x, end_y ) )
if ( !nextCharPosition( ci.width, path_distances[endindex], path_positions, endindex, _distance, start_x, start_y, end_x, end_y ) )
{
return nullptr;
}
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e0b184e

Please sign in to comment.