From f57adb09df03887d6feaf23a4a73d56961b26ed7 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Fri, 13 Jul 2001 03:04:39 +0000 Subject: [PATCH] Fixed reading of color values svn: r242 --- src/Config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Config.py b/src/Config.py index 350a3fd7e..2eba479ca 100644 --- a/src/Config.py +++ b/src/Config.py @@ -652,7 +652,7 @@ def get_config_color(name,defval): r = gnome.config.get_int("/gramps/color/" + name + ".r") g = gnome.config.get_int("/gramps/color/" + name + ".g") b = gnome.config.get_int("/gramps/color/" + name + ".b") - if not r: + if r == None: return defval else: return (r,g,b)