Expand previous fix to be slightly paranoid

This commit is contained in:
Chris Jones 2013-05-11 23:09:12 +01:00
parent 218cf4c1fb
commit 59db83ea53

View File

@ -620,6 +620,8 @@ class Terminal(gtk.VBox):
self.bgcolor = gtk.gdk.color_parse(self.config['background_color'])
factor = self.config['inactive_color_offset']
if factor > 1.0:
factor = 1.0
self.fgcolor_inactive = self.fgcolor_active.copy()
dbg(("fgcolor_inactive set to: RGB(%s,%s,%s)", getattr(self.fgcolor_inactive, "red"),
getattr(self.fgcolor_inactive, "green"),