Skip to content

Commit 364a099

Browse files
author
jef
committed
fix vector grid
git-svn-id: http://svn.osgeo.org/qgis/trunk@13105 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 51aef3c commit 364a099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/plugins/fTools/tools/doVectorGrid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def accept(self):
103103
self.progressBar.setValue( 0 )
104104

105105
def compute( self, bound, xOffset, yOffset, polygon ):
106-
crs = self.canvas.mapRenderer().destinationSrs()
106+
crs = self.iface.mapCanvas().mapRenderer().destinationSrs()
107107
if not crs.isValid(): crs = None
108108
if polygon:
109109
fields = {0:QgsField("ID", QVariant.Int), 1:QgsField("XMIN", QVariant.Double), 2:QgsField("XMAX", QVariant.Double),

0 commit comments

Comments
 (0)