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

svn_qgis at osgeo.org svn_qgis at osgeo.org
Thu Feb 10 12:28:26 EST 2011


Author: cfarmer
Date: 2011-02-10 09:28:26 -0800 (Thu, 10 Feb 2011)
New Revision: 15151

Modified:
   trunk/qgis/python/plugins/fTools/tools/doDefineProj.py
Log:
quick fix for problem when assigning crs of existing layer

Modified: trunk/qgis/python/plugins/fTools/tools/doDefineProj.py
===================================================================
--- trunk/qgis/python/plugins/fTools/tools/doDefineProj.py	2011-02-10 07:40:58 UTC (rev 15150)
+++ trunk/qgis/python/plugins/fTools/tools/doDefineProj.py	2011-02-10 17:28:26 UTC (rev 15151)
@@ -64,7 +64,7 @@
                     outProj = self.txtProjection.text()
                     srsDefine.createFromProj4(outProj)
                 else:
-                    destLayer = self.getVectorLayerByName(self.cmbLayer.currentText())
+                    destLayer = ftools_utils.getVectorLayerByName(self.cmbLayer.currentText())
                     srsDefine = destLayer.srs()
                 if srsDefine == vLayer.srs():
                     responce = QMessageBox.question(self, self.tr("Define current projection"),
@@ -123,4 +123,4 @@
                 self.txtProjection.clear()
                 self.txtProjection.insert(projString)
         else:
-            return
\ No newline at end of file
+            return



More information about the QGIS-commit mailing list