Skip to content

Commit

Permalink
Use geometry by default on custom expression functions
Browse files Browse the repository at this point in the history
Got burnt by my own code. Them feels.
  • Loading branch information
NathanW2 committed Dec 9, 2015
1 parent 6e140b9 commit e9ef513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/core/__init__.py
Expand Up @@ -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
Expand Down

0 comments on commit e9ef513

Please sign in to comment.