Skip to content

Commit

Permalink
[labeling] Prohibit non horizontal orientation for curved placement
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Aug 16, 2019
1 parent 5274c28 commit e487e96
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/core/qgspallabeling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,13 @@ void QgsPalLayerSettings::startRender( QgsRenderContext &context )
return;
}

if ( placement == QgsPalLayerSettings::Curved )
{
// force horizontal orientation, other orientation modes aren't unsupported for curved placement
mFormat.setOrientation( QgsTextFormat::HorizontalOrientation );
mDataDefinedProperties.property( QgsPalLayerSettings::TextOrientation ).setActive( false );
}

if ( mCallout )
{
mCallout->startRender( context );
Expand Down

0 comments on commit e487e96

Please sign in to comment.