Showing with 10 additions and 8 deletions.
  1. +2 −2 python/plugins/GdalTools/tools/extentSelector.py
  2. +6 −4 python/plugins/fTools/tools/doGeometry.py
  3. +2 −2 python/plugins/processing/gui/RectangleMapTool.py
4 changes: 2 additions & 2 deletions python/plugins/GdalTools/tools/extentSelector.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ def __init__(self, canvas):
QgsMapToolEmitPoint.__init__(self, self.canvas)

self.rubberBand = QgsRubberBand( self.canvas, QGis.Polygon )
self.rubberBand.setColor( Qt.red )
self.rubberBand.setWidth( 1 )
self.rubberBand.setColor( QColor(255, 0, 0, 100) )
self.rubberBand.setWidth( 2 )

self.reset()

Expand Down
10 changes: 6 additions & 4 deletions python/plugins/fTools/tools/doGeometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,11 @@ def updateGui( self ):
if self.chkWriteShapefile.isChecked():
self.lineEdit.setEnabled( True )
self.toolOut.setEnabled( True )
self.addToCanvasCheck.setEnabled( True )
else:
self.lineEdit.setEnabled( False )
self.toolOut.setEnabled( False )
self.addToCanvasCheck.setEnabled( False )

def populateLayers( self ):
self.inShape.clear()
Expand Down Expand Up @@ -565,11 +567,11 @@ def export_geometry_info( self ):
if self.writeShape:
outFeat.setGeometry( inGeom )
atMap = inFeat.attributes()
maxIndex = index1 if index1>index2 else index2
if maxIndex>len(atMap):
atMap += [ "" ] * ( index2+1 - len(atMap) )
maxIndex = index1 if index1 > index2 else index2
if maxIndex >= len(atMap):
atMap += [ "" ] * ( index2+1 - len(atMap) )
atMap[ index1 ] = attr1
if index1!=index2:
if index1 != index2:
atMap[ index2 ] = attr2
outFeat.setAttributes( atMap )
writer.addFeature( outFeat )
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/processing/gui/RectangleMapTool.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ def __init__(self, canvas):
QgsMapToolEmitPoint.__init__(self, self.canvas)

self.rubberBand = QgsRubberBand(self.canvas, QGis.Polygon)
self.rubberBand.setColor(Qt.red)
self.rubberBand.setWidth(1)
self.rubberBand.setColor(QColor(255, 0, 0, 100))
self.rubberBand.setWidth(2)

self.reset()

Expand Down