Skip to content

Commit 3eb858e

Browse files
committedDec 21, 2012
Use QgsRubberBand constructor with geom type to avoid future break by QgsRubberBand
1 parent 09b603d commit 3eb858e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎src/plugins/grass/qgsgrassplugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ void QgsGrassPlugin::initGui()
129129
connect( qgis, SIGNAL( newProject() ), this, SLOT( newProject() ) );
130130

131131
// Create region rubber band
132-
mRegionBand = new QgsRubberBand( mCanvas, 1 );
132+
mRegionBand = new QgsRubberBand( mCanvas, QGis::Polygon );
133133
mRegionBand->setZValue( 20 );
134134

135135
// Create the action for tool (the icons are set later by calling setCurrentTheme)

‎src/plugins/grass/qgsgrassregion.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ QgsGrassRegionEdit::QgsGrassRegionEdit( QgsMapCanvas* canvas )
3838
: QgsMapTool( canvas )
3939
{
4040
mDraw = false;
41-
mRubberBand = new QgsRubberBand( mCanvas, true );
42-
mSrcRubberBand = new QgsRubberBand( mCanvas, true );
41+
mRubberBand = new QgsRubberBand( mCanvas, QGis::Polygon );
42+
mSrcRubberBand = new QgsRubberBand( mCanvas, QGis::Polygon );
4343
QString gisdbase = QgsGrass::getDefaultGisdbase();
4444
QString location = QgsGrass::getDefaultLocation();
4545
mCrs = QgsGrass::crs( gisdbase, location );

0 commit comments

Comments
 (0)
Please sign in to comment.