diff --git a/gramps2/src/Utils.py b/gramps2/src/Utils.py index d7bdbeb96..6b554065f 100644 --- a/gramps2/src/Utils.py +++ b/gramps2/src/Utils.py @@ -527,9 +527,9 @@ def gfloat(val): return float(val) except: try: - return float(val.subst('.',',')) + return float(val.replace('.',',')) except: - return float(val.subst(',','.')) + return float(val.replace(',','.')) return 0.0 #-------------------------------------------------------------------------