From 03f4ed04096cd8700edb19efdfc354f09efb6b11 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Fri, 12 May 2006 00:54:17 +0000 Subject: [PATCH] 2006-05-11 Alex Roitman * src/UndoHistory.py (gtk_color_to_str): Correct byte color. svn: r6623 --- gramps2/ChangeLog | 3 +++ gramps2/src/UndoHistory.py | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 674f7ba6b..2600b1528 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2006-05-11 Alex Roitman + * src/UndoHistory.py (gtk_color_to_str): Correct byte color. + 2006-05-11 Don Allingham * src/PageView.py: fix search tuple * src/GrampsWidgets.py: handle Marker type properly diff --git a/gramps2/src/UndoHistory.py b/gramps2/src/UndoHistory.py index 4044693be..216aa6374 100644 --- a/gramps2/src/UndoHistory.py +++ b/gramps2/src/UndoHistory.py @@ -225,9 +225,9 @@ class UndoHistory(ManagedWindow.ManagedWindow): self._update_ui() def gtk_color_to_str(color): - r = hex(256*color.red/65535).replace('0x','') - g = hex(256*color.green/65535).replace('0x','') - b = hex(256*color.blue/65535).replace('0x','') + r = hex(255*color.red/65535).replace('0x','') + g = hex(255*color.green/65535).replace('0x','') + b = hex(255*color.blue/65535).replace('0x','') color_str =u'#%s%s%s' % (r,g,b) return color_str