Skip to content
Permalink
Browse files

Fix deprecated warnings on Travis

  • Loading branch information
nyalldawson committed Dec 7, 2015
1 parent 08ab4d4 commit 4f0b9dda79f2f9314a2722a76eaa2eefc72a6567
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/plugins/grass/qgsgrassregion.cpp
@@ -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() );
@@ -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();
}

@@ -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

0 comments on commit 4f0b9dd

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