Skip to content
Permalink
Browse files

fix rotate features issue with point geometries

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

mRubberBand = createRubberBand();
mRubberBand = createRubberBand( vlayer->geometryType() );
mRubberBand->setToGeometry( cf.geometry(), vlayer );
}
else
{
mRotatedFeatures = 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 d4c2027

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