Skip to content

Commit 5cbb5c7

Browse files
author
cfarmer
committed
Fix bug with outdated name of QgsRectangle class (QgsRect)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12887 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 558e816 commit 5cbb5c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/plugins/fTools/tools/doRegPoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def accept(self):
7676
mLayer = self.getMapLayerByName(unicode(inName))
7777
boundBox = mLayer.extent()
7878
else:
79-
boundBox = QgsRect(float(self.xMin.text()), float(self.yMin.text()), float(self.xMax.text()), float(self.yMax.text()))
79+
boundBox = QgsRectangle(float(self.xMin.text()), float(self.yMin.text()), float(self.xMax.text()), float(self.yMax.text()))
8080
self.regularize(boundBox, outPath, offset, value, self.rdoSpacing.isChecked(), self.spnInset.value(), self.progressBar)
8181
addToTOC = QMessageBox.question(self, self.tr("Generate Regular Points"), self.tr("Created output point shapefile:\n%1\n\nNote: Layer has no associated coordinate system, please use the Projection Management Tool to specify spatial reference system.\n\nWould you like to add the new layer to the TOC?").arg( outPath ), QMessageBox.Yes, QMessageBox.No, QMessageBox.NoButton)
8282
if addToTOC == QMessageBox.Yes:

0 commit comments

Comments
 (0)