Skip to content

Commit

Permalink
fix attribute updates in identify tool
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@9181 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Aug 27, 2008
1 parent c4c4cc2 commit eef7c97
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/qgsmaptoolidentify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
***************************************************************************/
/* $Id$ */

//#include "qgsattributedialog.h"
#include "qgscursors.h"
#include "qgsdistancearea.h"
#include "qgsfeature.h"
Expand Down Expand Up @@ -491,7 +490,7 @@ void QgsMapToolIdentify::editFeature( QgsFeature &f )
for ( QgsAttributeMap::const_iterator it = dst.begin(); it != dst.end(); it++ )
{
if ( !src.contains( it.key() ) || it.value() != src[it.key()] )
layer->changeAttributeValue( f.featureId(), it.key(), it.value().toString() );
layer->changeAttributeValue( f.featureId(), it.key(), it.value() );
}
}
delete ad;
Expand Down

0 comments on commit eef7c97

Please sign in to comment.