Skip to content

Commit

Permalink
Fix deprecated warnings on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 7, 2015
1 parent 08ab4d4 commit 4f0b9dd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/plugins/grass/qgsgrassregion.cpp
Expand Up @@ -59,8 +59,8 @@ void QgsGrassRegionEdit::canvasPressEvent( QgsMapMouseEvent * event )
{
QgsDebugMsg( "entered." );
mDraw = true;
mRubberBand->reset( true );
mSrcRubberBand->reset( true );
mRubberBand->reset( QGis::Polygon );
mSrcRubberBand->reset( QGis::Polygon );
emit captureStarted();

mStartPoint = toMapCoordinates( event->pos() );
Expand Down Expand Up @@ -93,8 +93,8 @@ void QgsGrassRegionEdit::canvasReleaseEvent( QgsMapMouseEvent * event )
//! called when map tool is about to get inactive
void QgsGrassRegionEdit::deactivate()
{
mRubberBand->reset( true );
mSrcRubberBand->reset( true );
mRubberBand->reset( QGis::Polygon );
mSrcRubberBand->reset( QGis::Polygon );
QgsMapTool::deactivate();
}

Expand Down Expand Up @@ -167,7 +167,7 @@ void QgsGrassRegionEdit::drawRegion( QgsMapCanvas *canvas, QgsRubberBand* rubber
{
transform( canvas, points, coordinateTransform );
}
rubberBand->reset( isPolygon );
rubberBand->reset( isPolygon ? QGis::Polygon : QGis::Line );
for ( int i = 0; i < points.size(); i++ )
{
bool update = false; // true to update canvas
Expand Down

0 comments on commit 4f0b9dd

Please sign in to comment.