Skip to content

Commit f4d0760

Browse files
author
jef
committed
fix crash when trying to reproject empty layers
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12970 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 98c0945 commit f4d0760

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/plugins/fTools/tools/doReProject.py

+3
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ def getFieldList(self, vlayer):
149149
#Output: Reprojected shapefile with attributes...
150150
def pointReproject(self, vlayer, xform, writer, progressBar):
151151
provider = vlayer.dataProvider()
152+
if provider.featureCount() == 0:
153+
return
154+
152155
allAttrs = provider.attributeIndexes()
153156
provider.select(allAttrs)
154157
feat = QgsFeature()

0 commit comments

Comments
 (0)