Skip to content
Permalink
Browse files

Don't pile derived attributes (Fix #7850)

  • Loading branch information
m-kuhn committed Jun 6, 2013
1 parent af73fce commit bdb2a4f1a2088d248eaebd70307dc25e694eaad1
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/gui/qgsmaptoolidentify.cpp
@@ -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;
@@ -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 ) )

0 comments on commit bdb2a4f

Please sign in to comment.
You can’t perform that action at this time.