Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 f1f3fcb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/plugins/fTools/tools/doIntersectLines.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
#-----------------------------------------------------------
#
# Locate Line Intersections
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit f1f3fcb

Please sign in to comment.