From 59db83ea53fbbb7efed7020b28be8e03a85bc4a9 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Sat, 11 May 2013 23:09:12 +0100 Subject: [PATCH] Expand previous fix to be slightly paranoid --- terminatorlib/terminal.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index 2a67ed29..0d4ff000 100755 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -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"),