From 240d81c5cd667d2b56d2f33397c3f33e32a46ab9 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Wed, 7 Apr 2010 12:17:11 +0100 Subject: [PATCH] Add another layer of protection against weird things making us set a stupid geometry hint that stops us from being able to resize smaller --- terminatorlib/window.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/terminatorlib/window.py b/terminatorlib/window.py index f66ef6cd..9349db1f 100755 --- a/terminatorlib/window.py +++ b/terminatorlib/window.py @@ -428,6 +428,11 @@ class Window(Container, gtk.Window): cols, rows = terminal.get_size() column_sum = column_sum + cols + if column_sum == 0 or row_sum == 0: + dbg('column_sum=%s,row_sum=%s. No terminals found in >=1 axis' % + (column_sum, row_sum)) + return + # FIXME: I don't think we should just use whatever font size info is on # the last terminal we inspected. Looking up the default profile font # size and calculating its character sizes would be rather expensive