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