Skip to content
Permalink
Browse files

fix move features issue with point geometries

  • Loading branch information
vinayan committed Apr 28, 2013
1 parent d4c2027 commit 2f9cb93ad3c58958184493c076bb874e25f547d7
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgsmaptoolmovefeature.cpp
@@ -112,14 +112,14 @@ void QgsMapToolMoveFeature::canvasPressEvent( QMouseEvent * e )
mMovedFeatures.clear();
mMovedFeatures << cf.id(); //todo: take the closest feature, not the first one...

mRubberBand = createRubberBand();
mRubberBand = createRubberBand( vlayer->geometryType() );
mRubberBand->setToGeometry( cf.geometry(), vlayer );
}
else
{
mMovedFeatures = vlayer->selectedFeaturesIds();

mRubberBand = createRubberBand();
mRubberBand = createRubberBand( vlayer->geometryType() );
for ( int i = 0; i < vlayer->selectedFeatureCount(); i++ )
{
mRubberBand->addGeometry( vlayer->selectedFeatures()[i].geometry(), vlayer );

0 comments on commit 2f9cb93

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