Skip to content

Commit

Permalink
Fix some map edit tools don't use correct rubberband color
Browse files Browse the repository at this point in the history
Fixes #19381

(cherry-picked from 1ac5ca0)
  • Loading branch information
nyalldawson committed Jul 12, 2018
1 parent ada068e commit 0e0a01a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
2 changes: 0 additions & 2 deletions src/app/qgsmaptoolmovefeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,6 @@ void QgsMapToolMoveFeature::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
}

mStartPointMapCoords = e->mapPoint();
mRubberBand->setColor( QColor( 255, 0, 0, 65 ) );
mRubberBand->setWidth( 2 );
mRubberBand->show();
}
else
Expand Down
2 changes: 0 additions & 2 deletions src/app/qgsmaptoolrotatefeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,6 @@ void QgsMapToolRotateFeature::canvasReleaseEvent( QgsMapMouseEvent *e )
}
}

mRubberBand->setColor( QColor( 255, 0, 0, 65 ) );
mRubberBand->setWidth( 2 );
mRubberBand->show();

double XDistance = mInitialPos.x() - mAnchorPoint->x();
Expand Down
4 changes: 1 addition & 3 deletions src/app/qgsmaptoolsimplify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,7 @@ void QgsMapToolSimplify::canvasReleaseEvent( QgsMapMouseEvent *e )
if ( f.hasGeometry() )
mOriginalVertexCount += f.geometry().constGet()->nCoordinates();

QgsRubberBand *rb = new QgsRubberBand( mCanvas );
rb->setColor( QColor( 255, 0, 0, 65 ) );
rb->setWidth( 2 );
QgsRubberBand *rb = createRubberBand();
rb->show();
mRubberBands << rb;
}
Expand Down

0 comments on commit 0e0a01a

Please sign in to comment.