[QGIS Commit] r12887 - trunk/qgis/python/plugins/fTools/tools

svn_qgis at osgeo.org svn_qgis at osgeo.org
Fri Feb 5 10:23:35 EST 2010


Author: cfarmer
Date: 2010-02-05 10:23:34 -0500 (Fri, 05 Feb 2010)
New Revision: 12887

Modified:
   trunk/qgis/python/plugins/fTools/tools/doRegPoints.py
Log:
Fix bug with outdated name of QgsRectangle class (QgsRect)


Modified: trunk/qgis/python/plugins/fTools/tools/doRegPoints.py
===================================================================
--- trunk/qgis/python/plugins/fTools/tools/doRegPoints.py	2010-02-05 12:00:56 UTC (rev 12886)
+++ trunk/qgis/python/plugins/fTools/tools/doRegPoints.py	2010-02-05 15:23:34 UTC (rev 12887)
@@ -76,7 +76,7 @@
 				mLayer = self.getMapLayerByName(unicode(inName))
 				boundBox = mLayer.extent()
 			else:
-				boundBox = QgsRect(float(self.xMin.text()), float(self.yMin.text()), float(self.xMax.text()), float(self.yMax.text()))
+				boundBox = QgsRectangle(float(self.xMin.text()), float(self.yMin.text()), float(self.xMax.text()), float(self.yMax.text()))
 			self.regularize(boundBox, outPath, offset, value, self.rdoSpacing.isChecked(), self.spnInset.value(), self.progressBar)
 			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)
 			if addToTOC == QMessageBox.Yes:



More information about the QGIS-commit mailing list