Skip to content

Commit 1ac5ca0

Browse files
committedJul 12, 2018
Fix some map edit tools don't use correct rubberband color
Fixes #19381
1 parent 93146f7 commit 1ac5ca0

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed
 

‎src/app/qgsmaptoolmovefeature.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,6 @@ void QgsMapToolMoveFeature::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
163163
}
164164

165165
mStartPointMapCoords = e->mapPoint();
166-
mRubberBand->setColor( QColor( 255, 0, 0, 65 ) );
167-
mRubberBand->setWidth( 2 );
168166
mRubberBand->show();
169167
}
170168
else

‎src/app/qgsmaptoolrotatefeature.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,6 @@ void QgsMapToolRotateFeature::canvasReleaseEvent( QgsMapMouseEvent *e )
299299
}
300300
}
301301

302-
mRubberBand->setColor( QColor( 255, 0, 0, 65 ) );
303-
mRubberBand->setWidth( 2 );
304302
mRubberBand->show();
305303

306304
double XDistance = mInitialPos.x() - mAnchorPoint->x();

‎src/app/qgsmaptoolsimplify.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -399,9 +399,7 @@ void QgsMapToolSimplify::canvasReleaseEvent( QgsMapMouseEvent *e )
399399
if ( f.hasGeometry() )
400400
mOriginalVertexCount += f.geometry().constGet()->nCoordinates();
401401

402-
QgsRubberBand *rb = new QgsRubberBand( mCanvas );
403-
rb->setColor( QColor( 255, 0, 0, 65 ) );
404-
rb->setWidth( 2 );
402+
QgsRubberBand *rb = createRubberBand();
405403
rb->show();
406404
mRubberBands << rb;
407405
}

0 commit comments

Comments
 (0)
Please sign in to comment.