Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix incorrect cursor used for rotate map tool
  • Loading branch information
nyalldawson authored and 3nids committed Jan 22, 2018
1 parent a0d0648 commit cc18918
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/app/qgsmaptoolrotatefeature.cpp
Expand Up @@ -398,7 +398,6 @@ void QgsMapToolRotateFeature::applyRotation( double rotation )

void QgsMapToolRotateFeature::activate()
{

QgsVectorLayer *vlayer = currentVectorLayer();
if ( !vlayer )
{
Expand All @@ -410,11 +409,7 @@ void QgsMapToolRotateFeature::activate()
return;
}

if ( vlayer->selectedFeatureCount() == 0 )
{
return;
}
else
if ( vlayer->selectedFeatureCount() > 0 )
{
QgsRectangle bound = vlayer->boundingBoxOfSelected();
mStartPointMapCoords = toMapCoordinates( vlayer, bound.center() );
Expand All @@ -424,9 +419,8 @@ void QgsMapToolRotateFeature::activate()
mAnchorPoint->setCenter( mStartPointMapCoords );

mStPoint = toCanvasCoordinates( mStartPointMapCoords );

QgsMapTool::activate();
}
QgsMapTool::activate();
}

void QgsMapToolRotateFeature::deleteRubberband()
Expand Down

0 comments on commit cc18918

Please sign in to comment.