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:
parent
cf8cf9a506
commit
240d81c5cd
|
@ -428,6 +428,11 @@ class Window(Container, gtk.Window):
|
||||||
cols, rows = terminal.get_size()
|
cols, rows = terminal.get_size()
|
||||||
column_sum = column_sum + cols
|
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
|
# 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
|
# the last terminal we inspected. Looking up the default profile font
|
||||||
# size and calculating its character sizes would be rather expensive
|
# size and calculating its character sizes would be rather expensive
|
||||||
|
|
Loading…
Reference in New Issue