Skip to content

Commit

Permalink
Fix layout issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 8, 2021
1 parent 832d5e9 commit 213017a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/pal/feature.cpp
Expand Up @@ -1375,7 +1375,7 @@ std::size_t FeaturePart::createCurvedCandidatesAlongLine( std::vector< std::uniq

// placements may need to be reversed if using map orientation and the line has right-to-left direction
bool labeledLineSegmentIsRightToLeft = false;
const QgsTextRendererUtils::LabelLineDirection direction = flags & QgsLabeling::LinePlacementFlag::MapOrientation ? QgsTextRendererUtils::RespectPainterOrientation : QgsTextRendererUtils::FollowLineDirection;
const QgsTextRendererUtils::LabelLineDirection direction = ( flags & QgsLabeling::LinePlacementFlag::MapOrientation ) ? QgsTextRendererUtils::RespectPainterOrientation : QgsTextRendererUtils::FollowLineDirection;

std::unique_ptr< LabelPosition > slp = curvedPlacementAtOffset( mapShape, path_distances, direction, distanceAlongLineToStartCandidate, labeledLineSegmentIsRightToLeft, !singleCandidateOnly );
if ( !slp )
Expand Down
4 changes: 2 additions & 2 deletions src/core/textrenderer/qgstextrendererutils.h
Expand Up @@ -155,8 +155,8 @@ class CORE_EXPORT QgsTextRendererUtils
* \param pathDistances vector of precalculated distances between vertices in \a x, \a y arrays
* \param offsetAlongLine offset along line at which to start the curved text placement
* \param direction controls placement of text with respect to painter orientation or line direction
* \param maxConcaveAngle maximum angle between chracters for concave text, or -1 if not set
* \param maxConvexAnglemaximum angle between chracters for convex text, or -1 if not set
* \param maxConcaveAngle maximum angle between characters for concave text, or -1 if not set
* \param maxConvexAngle maximum angle between characters for convex text, or -1 if not set
* \param uprightOnly set to TRUE if text should be placed in an upright orientation only, or FALSE to allow upside down text placement
*
* \returns calculated placement properties, or NULLPTR if placement could not be calculated. Caller takes ownership of the returned placement.
Expand Down

0 comments on commit 213017a

Please sign in to comment.