Skip to content
Permalink
Browse files

fix crash when trying to reproject empty layers

git-svn-id: http://svn.osgeo.org/qgis/trunk@12970 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Feb 24, 2010
1 parent ec241b3 commit 406fb6c9270e951c7d478b8b509cf81faa357fe1
Showing with 3 additions and 0 deletions.
  1. +3 −0 python/plugins/fTools/tools/doReProject.py
@@ -149,6 +149,9 @@ def getFieldList(self, vlayer):
#Output: Reprojected shapefile with attributes...
def pointReproject(self, vlayer, xform, writer, progressBar):
provider = vlayer.dataProvider()
if provider.featureCount() == 0:
return

allAttrs = provider.attributeIndexes()
provider.select(allAttrs)
feat = QgsFeature()

0 comments on commit 406fb6c

Please sign in to comment.
You can’t perform that action at this time.