Skip to content
Permalink
Browse files

Fix some map edit tools don't use correct rubberband color

Fixes #19381
  • Loading branch information
nyalldawson committed Jul 12, 2018
1 parent 93146f7 commit 1ac5ca02c724c51a4250989e7fe3243289a42ace
Showing with 1 addition and 7 deletions.
  1. +0 −2 src/app/qgsmaptoolmovefeature.cpp
  2. +0 −2 src/app/qgsmaptoolrotatefeature.cpp
  3. +1 −3 src/app/qgsmaptoolsimplify.cpp
@@ -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
@@ -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();
@@ -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;
}

0 comments on commit 1ac5ca0

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