Skip to content

Commit

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

Please sign in to comment.