Skip to content


Browse files Browse the repository at this point in the history
[processing] fix vector functions definitions
  • Loading branch information
alexbruy committed Aug 28, 2014
1 parent b1ce532 commit 6130505
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/tools/
Expand Up @@ -361,12 +361,12 @@ def checkMinDistance(point, index, distance, points):
int: QVariant.Int

def _fieldName(self, f):
def _fieldName(f):
if isinstance(f, basestring):
return f

def _toQgsField(self, f):
def _toQgsField(f):
if isinstance(f, QgsField):
return f
return QgsField(f[0], TYPE_MAP.get(f[1], QVariant.String))
Expand Down

0 comments on commit 6130505

Please sign in to comment.