Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@10984 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Jun 26, 2009
1 parent be7c156 commit 1938262
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/qgsmaptoolnodetool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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() ) )
Expand Down

0 comments on commit 1938262

Please sign in to comment.