mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-22 00:14:55 -05: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$ */
|
/* $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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user