Skip to content
Permalink
Browse files

fix warning

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10984 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Jun 26, 2009
1 parent c741d92 commit cb90ab452f35cf218f77f71a7fa9b20fe58307f1
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/app/qgsmaptoolnodetool.cpp
@@ -69,7 +69,7 @@ QgsMapToolNodeTool::~QgsMapToolNodeTool()

void QgsMapToolNodeTool::layersChanged()
{
QgsVectorLayer* vlayer = vlayer = dynamic_cast<QgsVectorLayer*>( mCanvas->currentLayer() );
QgsVectorLayer* vlayer = dynamic_cast<QgsVectorLayer*>( mCanvas->currentLayer() );
if ( mSelectionFeature != NULL && mSelectionFeature->vlayer() != vlayer )
{
delete mSelectionFeature;
@@ -79,7 +79,7 @@ void QgsMapToolNodeTool::layersChanged()

void QgsMapToolNodeTool::currentLayerChanged( QgsMapLayer* layer )
{
QgsVectorLayer* vlayer = vlayer = dynamic_cast<QgsVectorLayer*>( layer );
QgsVectorLayer* vlayer = dynamic_cast<QgsVectorLayer*>( layer );
if ( mSelectionFeature != NULL && mSelectionFeature->vlayer() != vlayer )
{
delete mSelectionFeature;
@@ -102,7 +102,7 @@ void QgsMapToolNodeTool::featureDeleted( int featureId )
void QgsMapToolNodeTool::layerModified( bool onlyGeometry )
{
QgsFeature feat;
QgsVectorLayer* vlayer = vlayer = dynamic_cast<QgsVectorLayer*>( mCanvas->currentLayer() );
QgsVectorLayer* vlayer = dynamic_cast<QgsVectorLayer*>( mCanvas->currentLayer() );
if ( mSelectionFeature != NULL && !mChangingGeometry && ( vlayer->featureAtId( mSelectionFeature->featureId(), feat, true, false ) ) )
{
if ( !GEOSEquals( feat.geometry()->asGeos(), mSelectionFeature->feature()->geometry()->asGeos() ) )

0 comments on commit cb90ab4

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