From 88743af243ac8e46b419fffb822a93c9a14f158f Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Fri, 9 Oct 2015 17:47:03 +0100 Subject: [PATCH] Fix error converting color into string --- gramps/gui/undohistory.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gramps/gui/undohistory.py b/gramps/gui/undohistory.py index c23a72e73..19615d5c4 100644 --- a/gramps/gui/undohistory.py +++ b/gramps/gui/undohistory.py @@ -254,9 +254,9 @@ def gdk_color_to_str(color): """ Convert a Gdk.Color into a #rrggbb string. """ - color_str = "#%02x%02x%02x" % (color.red * 255, - color.green * 255, - color.blue * 255) + color_str = "#%02x%02x%02x" % (int(color.red * 255), + int(color.green * 255), + int(color.blue * 255)) return color_str def get_colors(obj, state):