Fixed reading of color values

svn: r242
This commit is contained in:
Don Allingham 2001-07-13 03:04:39 +00:00
parent e80b552a89
commit 1b6ce13527

View File

@ -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)