Skip to content
Permalink
Browse files

Fix incorrect cursor used for rotate map tool

  • Loading branch information
nyalldawson authored and 3nids committed Jan 21, 2018
1 parent a0d0648 commit cc18918ba2ff1ae43e6dab30a5b3eb5073587ff5
Showing with 2 additions and 8 deletions.
  1. +2 −8 src/app/qgsmaptoolrotatefeature.cpp
@@ -398,7 +398,6 @@ void QgsMapToolRotateFeature::applyRotation( double rotation )

void QgsMapToolRotateFeature::activate()
{

QgsVectorLayer *vlayer = currentVectorLayer();
if ( !vlayer )
{
@@ -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() );
@@ -424,9 +419,8 @@ void QgsMapToolRotateFeature::activate()
mAnchorPoint->setCenter( mStartPointMapCoords );

mStPoint = toCanvasCoordinates( mStartPointMapCoords );

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

void QgsMapToolRotateFeature::deleteRubberband()

0 comments on commit cc18918

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