From 8e5591ee165f23d7a4160aca985b930f22494fa3 Mon Sep 17 00:00:00 2001 From: Zsolt Foldvari Date: Tue, 25 Mar 2008 22:59:59 +0000 Subject: [PATCH] Fixing: none of the types subclassed from GrampsType can be initialized with value 0. svn: r10398 --- src/gen/lib/grampstype.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gen/lib/grampstype.py b/src/gen/lib/grampstype.py index 0450935d8..b4de50f78 100644 --- a/src/gen/lib/grampstype.py +++ b/src/gen/lib/grampstype.py @@ -75,7 +75,7 @@ class GrampsType(object): Create a new type, initialize the value from one of several possible states. """ - if value: + if value is not None: self.set(value) else: self.val = self._DEFAULT