Skip to content

Commit

Permalink
Style
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 8, 2024
1 parent 7de5227 commit ee88455
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/gui/raster/qgsrasterlabelingwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ void QgsRasterLabelingWidget::labelModeChanged( int index )
connect( settingsWidget, &QgsLabelingGui::widgetChanged, this, &QgsRasterLabelingWidget::widgetChanged );

mWidget = settingsWidget;
if ( !dynamic_cast< QgsRasterLayerSimpleLabeling * >( mLayer->labeling() ) )
if ( !dynamic_cast<QgsRasterLayerSimpleLabeling *>( mLayer->labeling() ) )
{
std::unique_ptr< QgsRasterLayerSimpleLabeling > labeling = std::make_unique< QgsRasterLayerSimpleLabeling >();
std::unique_ptr<QgsRasterLayerSimpleLabeling> labeling = std::make_unique<QgsRasterLayerSimpleLabeling>();
settingsWidget->setLabeling( labeling.get() );
mLayer->setLabeling( labeling.release() );
}
Expand Down
2 changes: 1 addition & 1 deletion src/gui/raster/qgsrasterlabelsettingswidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ void QgsRasterLabelSettingsWidget::setLabeling( QgsAbstractRasterLayerLabeling *
{
setFormat( simpleLabeling->textFormat() );
mBandCombo->setBand( simpleLabeling->band() );
mPrioritySlider->setValue( static_cast< int >( 100 - simpleLabeling->priority() * 100 ) );
mPrioritySlider->setValue( static_cast<int>( 100 - simpleLabeling->priority() * 100 ) );

mComboOverlapHandling->setCurrentIndex( mComboOverlapHandling->findData( static_cast<int>( simpleLabeling->placementSettings().overlapHandling() ) ) );
mZIndexSpinBox->setValue( simpleLabeling->zIndex() );
Expand Down

0 comments on commit ee88455

Please sign in to comment.