Skip to content

Commit cc18918

Browse files
nyalldawson3nids
authored andcommittedJan 22, 2018
Fix incorrect cursor used for rotate map tool
1 parent a0d0648 commit cc18918

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed
 

‎src/app/qgsmaptoolrotatefeature.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,6 @@ void QgsMapToolRotateFeature::applyRotation( double rotation )
398398

399399
void QgsMapToolRotateFeature::activate()
400400
{
401-
402401
QgsVectorLayer *vlayer = currentVectorLayer();
403402
if ( !vlayer )
404403
{
@@ -410,11 +409,7 @@ void QgsMapToolRotateFeature::activate()
410409
return;
411410
}
412411

413-
if ( vlayer->selectedFeatureCount() == 0 )
414-
{
415-
return;
416-
}
417-
else
412+
if ( vlayer->selectedFeatureCount() > 0 )
418413
{
419414
QgsRectangle bound = vlayer->boundingBoxOfSelected();
420415
mStartPointMapCoords = toMapCoordinates( vlayer, bound.center() );
@@ -424,9 +419,8 @@ void QgsMapToolRotateFeature::activate()
424419
mAnchorPoint->setCenter( mStartPointMapCoords );
425420

426421
mStPoint = toCanvasCoordinates( mStartPointMapCoords );
427-
428-
QgsMapTool::activate();
429422
}
423+
QgsMapTool::activate();
430424
}
431425

432426
void QgsMapToolRotateFeature::deleteRubberband()

0 commit comments

Comments
 (0)
Please sign in to comment.