Skip to content

Commit

Permalink
Don't pile derived attributes (Fix #7850)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jun 6, 2013
1 parent af73fce commit bdb2a4f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/gui/qgsmaptoolidentify.cpp
Expand Up @@ -195,9 +195,9 @@ bool QgsMapToolIdentify::identifyVectorLayer( QList<IdentifyResult> *results, Qg
return false;
}

QMap< QString, QString > derivedAttributes;
QMap< QString, QString > commonDerivedAttributes;

derivedAttributes.insert( tr( "(clicked coordinate)" ), point.toString() );
commonDerivedAttributes.insert( tr( "(clicked coordinate)" ), point.toString() );

// load identify radius from settings
QSettings settings;
Expand Down Expand Up @@ -252,6 +252,8 @@ bool QgsMapToolIdentify::identifyVectorLayer( QList<IdentifyResult> *results, Qg

for ( ; f_it != featureList.end(); ++f_it )
{
QMap< QString, QString > derivedAttributes = commonDerivedAttributes;

QgsFeatureId fid = f_it->id();

if ( filter && !renderer->willRenderFeature( *f_it ) )
Expand Down

0 comments on commit bdb2a4f

Please sign in to comment.