Skip to content
Permalink
Browse files
Use QgsRubberBand constructor with geom type to avoid future break by…
… QgsRubberBand
  • Loading branch information
blazek committed Dec 21, 2012
1 parent 09b603d commit 3eb858eb6055a29a68ce2cf2894c7fbb48c31e4d
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/plugins/grass/qgsgrassplugin.cpp
  2. +2 −2 src/plugins/grass/qgsgrassregion.cpp
@@ -129,7 +129,7 @@ void QgsGrassPlugin::initGui()
connect( qgis, SIGNAL( newProject() ), this, SLOT( newProject() ) );

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

// Create the action for tool (the icons are set later by calling setCurrentTheme)
@@ -38,8 +38,8 @@ QgsGrassRegionEdit::QgsGrassRegionEdit( QgsMapCanvas* canvas )
: QgsMapTool( canvas )
{
mDraw = false;
mRubberBand = new QgsRubberBand( mCanvas, true );
mSrcRubberBand = new QgsRubberBand( mCanvas, true );
mRubberBand = new QgsRubberBand( mCanvas, QGis::Polygon );
mSrcRubberBand = new QgsRubberBand( mCanvas, QGis::Polygon );
QString gisdbase = QgsGrass::getDefaultGisdbase();
QString location = QgsGrass::getDefaultLocation();
mCrs = QgsGrass::crs( gisdbase, location );

0 comments on commit 3eb858e

Please sign in to comment.