4591: Do not allow less than a single column in the Gramplet view
svn: r16547
This commit is contained in:
parent
7a1b5075b3
commit
a3cea6e172
@ -1227,6 +1227,8 @@ class GrampletPane(gtk.ScrolledWindow):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
def set_columns(self, num):
|
def set_columns(self, num):
|
||||||
|
if num < 1:
|
||||||
|
num = 1
|
||||||
# clear the gramplets:
|
# clear the gramplets:
|
||||||
self.clear_gramplets()
|
self.clear_gramplets()
|
||||||
# clear the columns:
|
# clear the columns:
|
||||||
|
Loading…
Reference in New Issue
Block a user