From 2dcb40ab087d0fb5693a53dd1fa5fb24e3b6bc57 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 --- ChangeLog | 3 +++ src/UndoHistory.py | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 674f7ba6b..2600b1528 100644 --- a/ChangeLog +++ b/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/src/UndoHistory.py b/src/UndoHistory.py index 4044693be..216aa6374 100644 --- a/src/UndoHistory.py +++ b/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