Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f297e6c

Browse files
committedMar 5, 2023
Fix placement of perimeter labels with HTML formatting enabled
Fixes #51829 (cherry picked from commit 2259924)
1 parent 49b3dd7 commit f297e6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/labeling/qgsvectorlayerlabelprovider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ void QgsVectorLayerLabelProvider::drawLabelPrivate( pal::LabelPosition *label, Q
660660

661661
QgsTextDocument document;
662662
QgsTextDocumentMetrics metrics;
663-
if ( !tmpLyr.format().allowHtmlFormatting() || tmpLyr.placement == Qgis::LabelPlacement::Curved )
663+
if ( !tmpLyr.format().allowHtmlFormatting() || tmpLyr.placement == Qgis::LabelPlacement::Curved || tmpLyr.placement == Qgis::LabelPlacement::PerimeterCurved )
664664
{
665665
const QgsTextCharacterFormat c = lf->characterFormat( label->getPartId() );
666666
const QStringList multiLineList = QgsPalLabeling::splitToLines( txt, tmpLyr.wrapChar, tmpLyr.autoWrapLength, tmpLyr.useMaxLineLengthForAutoWrap );

0 commit comments

Comments
 (0)
Please sign in to comment.