Skip to content

Commit

Permalink
[annotations][ui] Fix fixed-size unit combo box not set when editing …
Browse files Browse the repository at this point in the history
…a rectangle text annotation
  • Loading branch information
nirvn authored and nyalldawson committed Feb 2, 2025
1 parent aa5de9a commit 05a22ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/annotations/qgsannotationitemwidget_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,6 @@ QgsAnnotationRectangleTextItemWidget::QgsAnnotationRectangleTextItemWidget( QWid

mSizeUnitWidget->setUnits( QgsUnitTypes::RenderUnitList() << Qgis::RenderUnit::Pixels << Qgis::RenderUnit::Millimeters << Qgis::RenderUnit::Points << Qgis::RenderUnit::Inches << Qgis::RenderUnit::Percentage );


mBackgroundSymbolButton->setSymbolType( Qgis::SymbolType::Fill );
mBackgroundSymbolButton->setDialogTitle( tr( "Background" ) );
mBackgroundSymbolButton->registerExpressionContextGenerator( this );
Expand Down Expand Up @@ -753,6 +752,7 @@ bool QgsAnnotationRectangleTextItemWidget::setNewItem( QgsAnnotationItem *item )

mWidthSpinBox->setValue( textItem->fixedSize().width() );
mHeightSpinBox->setValue( textItem->fixedSize().height() );
mSizeUnitWidget->setUnit( textItem->fixedSizeUnit() );
mSizeModeCombo->setCurrentIndex( mSizeModeCombo->findData( QVariant::fromValue( textItem->placementMode() ) ) );

mBlockChangedSignal = false;
Expand Down

0 comments on commit 05a22ea

Please sign in to comment.