Skip to content
Permalink
Browse files

For oversized width in QgsLayoutItemLabel::adjustSizeToText

  • Loading branch information
github-actions authored and nyalldawson committed Jan 28, 2020
1 parent e28feaf commit 8425ada255afd25db905d77725ca397a8b20b4e9
@@ -358,7 +358,7 @@ QSizeF QgsLayoutItemLabel::sizeForText() const

double penWidth = frameEnabled() ? ( pen().widthF() / 2.0 ) : 0;

double width = textWidth + 2 * mMarginX + 2 * penWidth + 1;
double width = textWidth + 2 * mMarginX + 2 * penWidth;
double height = fontHeight + 2 * mMarginY + 2 * penWidth;

return mLayout->convertToLayoutUnits( QgsLayoutSize( width, height, QgsUnitTypes::LayoutMillimeters ) );
Binary file not shown.
Binary file not shown.

0 comments on commit 8425ada

Please sign in to comment.
You can’t perform that action at this time.