@@ -3531,7 +3531,7 @@ void QgsComposer::writeWorldFile( QString worldFileName, double a, double b, dou
3531
3531
}
3532
3532
3533
3533
3534
- void QgsComposer::setAtlasFeature ( QgsMapLayer* layer, QgsFeature * feat )
3534
+ void QgsComposer::setAtlasFeature ( QgsMapLayer* layer, const QgsFeature * feat )
3535
3535
{
3536
3536
// update expression variables
3537
3537
QgsExpression::setSpecialColumn ( " $atlasfeatureid" , feat->id () );
@@ -3581,7 +3581,7 @@ void QgsComposer::updateAtlasMapLayerAction( QgsVectorLayer *coverageLayer )
3581
3581
{
3582
3582
mAtlasFeatureAction = new QgsMapLayerAction ( QString ( tr ( " Set as atlas feature for %1" ) ).arg ( mTitle ), this , coverageLayer, QgsMapLayerAction::SingleFeature );
3583
3583
QgsMapLayerActionRegistry::instance ()->addMapLayerAction ( mAtlasFeatureAction );
3584
- connect ( mAtlasFeatureAction , SIGNAL ( triggeredForFeature ( QgsMapLayer*, QgsFeature* ) ), this , SLOT ( setAtlasFeature ( QgsMapLayer*, QgsFeature* ) ) );
3584
+ connect ( mAtlasFeatureAction , SIGNAL ( triggeredForFeature ( QgsMapLayer*, const QgsFeature* ) ), this , SLOT ( setAtlasFeature ( QgsMapLayer*, const QgsFeature* ) ) );
3585
3585
}
3586
3586
}
3587
3587
@@ -3626,7 +3626,7 @@ void QgsComposer::updateAtlasMapLayerAction( bool atlasEnabled )
3626
3626
QgsAtlasComposition& atlas = mComposition ->atlasComposition ();
3627
3627
mAtlasFeatureAction = new QgsMapLayerAction ( QString ( tr ( " Set as atlas feature for %1" ) ).arg ( mTitle ), this , atlas.coverageLayer (), QgsMapLayerAction::SingleFeature );
3628
3628
QgsMapLayerActionRegistry::instance ()->addMapLayerAction ( mAtlasFeatureAction );
3629
- connect ( mAtlasFeatureAction , SIGNAL ( triggeredForFeature ( QgsMapLayer*, QgsFeature* ) ), this , SLOT ( setAtlasFeature ( QgsMapLayer*, QgsFeature* ) ) );
3629
+ connect ( mAtlasFeatureAction , SIGNAL ( triggeredForFeature ( QgsMapLayer*, const QgsFeature* ) ), this , SLOT ( setAtlasFeature ( QgsMapLayer*, const QgsFeature* ) ) );
3630
3630
}
3631
3631
}
3632
3632
0 commit comments