Skip to content
Browse files
[labeling] Default to "from symbol bounds" for cartographic
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 4ad5d36d93df8eaf0105aed2c9918197f5bf67ef
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/core/labeling/qgsvectorlayerlabeling.cpp
@@ -55,6 +55,7 @@ QgsPalLayerSettings QgsAbstractVectorLayerLabeling::defaultSettingsForLayer( con
case QgsWkbTypes::PointGeometry:
settings.placement = QgsPalLayerSettings::OrderedPositionsAroundPoint;
settings.offsetType = QgsPalLayerSettings::FromSymbolBounds;
case QgsWkbTypes::LineGeometry:
settings.placement = QgsPalLayerSettings::Line;

0 comments on commit 4ad5d36

Please sign in to comment.