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

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sat Mar 12 10:51:21 EST 2011


Author: cfarmer
Date: 2011-03-12 07:51:20 -0800 (Sat, 12 Mar 2011)
New Revision: 15451

Modified:
   trunk/qgis/python/plugins/fTools/tools/doGeometry.py
Log:
fixes problem with output type when using multipart to singleparts tool. Thanks to Luiz Motta for the fix.

Modified: trunk/qgis/python/plugins/fTools/tools/doGeometry.py
===================================================================
--- trunk/qgis/python/plugins/fTools/tools/doGeometry.py	2011-03-12 15:45:52 UTC (rev 15450)
+++ trunk/qgis/python/plugins/fTools/tools/doGeometry.py	2011-03-12 15:51:20 UTC (rev 15451)
@@ -355,7 +355,7 @@
     vprovider.select( allAttrs )
     fields = vprovider.fields()
     writer = QgsVectorFileWriter( self.myName, self.myEncoding,
-    fields, vprovider.geometryType(), vprovider.crs() )
+    fields, vprovider.geometryType()-3, vprovider.crs() )
     inFeat = QgsFeature()
     outFeat = QgsFeature()
     inGeom = QgsGeometry()



More information about the QGIS-commit mailing list