Fixed reading of color values
svn: r242
This commit is contained in:
parent
1b03618556
commit
f57adb09df
@ -652,7 +652,7 @@ def get_config_color(name,defval):
|
|||||||
r = gnome.config.get_int("/gramps/color/" + name + ".r")
|
r = gnome.config.get_int("/gramps/color/" + name + ".r")
|
||||||
g = gnome.config.get_int("/gramps/color/" + name + ".g")
|
g = gnome.config.get_int("/gramps/color/" + name + ".g")
|
||||||
b = gnome.config.get_int("/gramps/color/" + name + ".b")
|
b = gnome.config.get_int("/gramps/color/" + name + ".b")
|
||||||
if not r:
|
if r == None:
|
||||||
return defval
|
return defval
|
||||||
else:
|
else:
|
||||||
return (r,g,b)
|
return (r,g,b)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user