mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
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:
parent
c4c4cc266f
commit
eef7c976d0
@ -14,7 +14,6 @@
|
||||
***************************************************************************/
|
||||
/* $Id$ */
|
||||
|
||||
//#include "qgsattributedialog.h"
|
||||
#include "qgscursors.h"
|
||||
#include "qgsdistancearea.h"
|
||||
#include "qgsfeature.h"
|
||||
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user