Skip to content

Commit

Permalink
[labeling] Default to "from symbol bounds" for cartographic
Browse files Browse the repository at this point in the history
point label placement

Gives nicer default appearance to these labels then the "from point"
mode, which often results in labels overlapping the point symbol

Fixes #25866
  • Loading branch information
nyalldawson committed May 25, 2021
1 parent b190c8f commit 4ad5d36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/labeling/qgsvectorlayerlabeling.cpp
Expand Up @@ -55,6 +55,7 @@ QgsPalLayerSettings QgsAbstractVectorLayerLabeling::defaultSettingsForLayer( con
{
case QgsWkbTypes::PointGeometry:
settings.placement = QgsPalLayerSettings::OrderedPositionsAroundPoint;
settings.offsetType = QgsPalLayerSettings::FromSymbolBounds;
break;
case QgsWkbTypes::LineGeometry:
settings.placement = QgsPalLayerSettings::Line;
Expand Down

0 comments on commit 4ad5d36

Please sign in to comment.