Skip to content
Browse files
Use geometry by default on custom expression functions
Got burnt by my own code. Them feels.
  • Loading branch information
NathanW2 committed Dec 9, 2015
1 parent 6e140b9 commit e9ef51341c2cef016648be6c619a4d43ffe362ca
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/core/
@@ -39,7 +39,7 @@ def myfunc(values, *args):
class QgsExpressionFunction(QgsExpression.Function):

def __init__(self, func, name, args, group, helptext='', usesgeometry=False, expandargs=False):
def __init__(self, func, name, args, group, helptext='', usesgeometry=True, expandargs=False):
QgsExpression.Function.__init__(self, name, args, group, helptext, usesgeometry)
self.function = func
self.expandargs = expandargs

0 comments on commit e9ef513

Please sign in to comment.