From 82447881a5ed55ce38d0575f650794dd590be88b Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Sat, 1 Aug 2015 19:41:53 +0100 Subject: [PATCH] Fix style name bug in style editor --- gramps/gui/plug/report/_styleeditor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gramps/gui/plug/report/_styleeditor.py b/gramps/gui/plug/report/_styleeditor.py index 71181b88e..ce3c07979 100644 --- a/gramps/gui/plug/report/_styleeditor.py +++ b/gramps/gui/plug/report/_styleeditor.py @@ -231,9 +231,9 @@ class StyleEditor(object): self.plist = ListModel(self.top.get_object("ptree"), titles, self.change_display) - for name in ('color', 'bgcolor', 'line_color', 'fill_color'): - color = self.top.get_object(name) - label = self.top.get_object(name + '_code') + for widget_name in ('color', 'bgcolor', 'line_color', 'fill_color'): + color = self.top.get_object(widget_name) + label = self.top.get_object(widget_name + '_code') color.connect('notify::color', self.color_changed, label) self.top.get_object("style_name").set_text(name)