Skip to content

Commit

Permalink
fix crash when trying to reproject empty layers
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@12970 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Feb 24, 2010
1 parent ec241b3 commit 406fb6c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/plugins/fTools/tools/doReProject.py
Expand Up @@ -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()
Expand Down

0 comments on commit 406fb6c

Please sign in to comment.