Skip to content

Commit f75803e

Browse files
committed
python plugins: replace QgsMapRenderer.destinationSrs() with destinationCrs() (closes #6391)
1 parent de54c16 commit f75803e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python/plugins/fTools/tools/doRandPoints.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def randomize(self, inLayer, outPath, minimum, design, value):
215215
points = self.vectorRandom(int(value), inLayer,
216216
ext.xMinimum(), ext.xMaximum(), ext.yMinimum(), ext.yMaximum())
217217
else: points = self.loopThruPolygons(inLayer, value, design)
218-
crs = self.iface.mapCanvas().mapRenderer().destinationSrs()
218+
crs = self.iface.mapCanvas().mapRenderer().destinationCrs()
219219
if not crs.isValid(): crs = None
220220
fields = { 0 : QgsField("ID", QVariant.Int) }
221221
check = QFile(self.shapefileName)

python/plugins/fTools/tools/doRegPoints.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def accept(self):
8585
crs = mLayer.crs()
8686
else:
8787
boundBox = QgsRectangle(float(self.xMin.text()), float(self.yMin.text()), float(self.xMax.text()), float(self.yMax.text()))
88-
crs = self.mapCanvas.mapRenderer().destinationSrs()
88+
crs = self.mapCanvas.mapRenderer().destinationCrs()
8989
print crs.isValid()
9090
if not crs.isValid(): crs = None
9191
self.regularize(boundBox, outPath, offset, value, self.rdoSpacing.isChecked(), self.spnInset.value(), crs)

0 commit comments

Comments
 (0)