fix attribute updates in identify tool

git-svn-id: http://svn.osgeo.org/qgis/trunk@9181 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
jef 2008-08-27 07:32:27 +00:00
parent c4c4cc266f
commit eef7c976d0

View File

@ -14,7 +14,6 @@
***************************************************************************/ ***************************************************************************/
/* $Id$ */ /* $Id$ */
//#include "qgsattributedialog.h"
#include "qgscursors.h" #include "qgscursors.h"
#include "qgsdistancearea.h" #include "qgsdistancearea.h"
#include "qgsfeature.h" #include "qgsfeature.h"
@ -491,7 +490,7 @@ void QgsMapToolIdentify::editFeature( QgsFeature &f )
for ( QgsAttributeMap::const_iterator it = dst.begin(); it != dst.end(); it++ ) for ( QgsAttributeMap::const_iterator it = dst.begin(); it != dst.end(); it++ )
{ {
if ( !src.contains( it.key() ) || it.value() != src[it.key()] ) 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; delete ad;