Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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
nirvn committed Feb 2, 2025
1 parent 31df6fa commit a027307
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
@@ -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 );
@@ -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;

0 comments on commit a027307

Please sign in to comment.