Skip to content
Permalink
Browse files

fixed rpoblem when selecting extent from canvas

git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@323 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
volayaf
volayaf committed Jul 31, 2012
1 parent 9599c20 commit d71c7d8305f7e006c2c44a821761eba0ad59245f
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/sextante/gui/ExtentSelectionPanel.py
@@ -102,9 +102,10 @@ def addToRegion(self, layer, first):
self.ymax = max(self.ymax, layer.extent().yMaximum())

def useLayerExtent(self):
CANVAS_KEY = QtCore.QString("Use canvas extent")
extentsDict = {}
extentsDict["[Canvas]"] = QGisLayers.iface.mapCanvas().extent()
extents = ["[Canvas]"]
extentsDict[CANVAS_KEY] = QGisLayers.iface.mapCanvas().extent()
extents = [CANVAS_KEY]
layers = QGisLayers.getAllLayers()
for layer in layers:
extents.append(layer.name())

0 comments on commit d71c7d8

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