Skip to content
Permalink
Browse files
fixes bug where new fields started with integer (integer now appended…
… to end of field name)

git-svn-id: http://svn.osgeo.org/qgis/trunk@11755 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
cfarmer committed Oct 4, 2009
1 parent 46d8a4d commit f1f3fcbec0a2a8929e4a2263a6d5b6dcfd0e6198
Showing with 3 additions and 2 deletions.
  1. +3 −2 python/plugins/fTools/tools/doIntersectLines.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
#-----------------------------------------------------------
#
# Locate Line Intersections
@@ -123,11 +124,11 @@ def compute(self, line1, line2, field1, field2, outPath, progressBar):
fieldList = self.getFieldList(layer1)
index1 = provider1.fieldNameIndex(field1)
field1 = fieldList[index1]
field1.setName("1_" + unicode(field1.name()))
field1.setName(unicode(field1.name()) + "_1")
fieldList = self.getFieldList(layer2)
index2 = provider2.fieldNameIndex(field2)
field2 = fieldList[index2]
field2.setName("2_" + unicode(field2.name()))
field2.setName(unicode(field2.name()) + "_2")
fieldList = {0:field1, 1:field2}
sRs = provider1.crs()
check = QFile(self.shapefileName)

0 comments on commit f1f3fcb

Please sign in to comment.