Add another layer of protection against weird things making us set a stupid geometry hint that stops us from being able to resize smaller

This commit is contained in:
Chris Jones 2010-04-07 12:17:11 +01:00
parent cf8cf9a506
commit 240d81c5cd

View File

@ -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