From bced98bd711cb1157c0d34b91c1bb8d238951b90 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Wed, 2 Feb 2011 22:09:14 +0000 Subject: [PATCH] 4591: Do not allow less than a single column in the Gramplet view svn: r16546 --- src/gui/widgets/grampletpane.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/widgets/grampletpane.py b/src/gui/widgets/grampletpane.py index f2f0172a0..a6830afc3 100644 --- a/src/gui/widgets/grampletpane.py +++ b/src/gui/widgets/grampletpane.py @@ -1102,6 +1102,8 @@ class GrampletPane(gtk.ScrolledWindow): return True def set_columns(self, num): + if num < 1: + num = 1 # clear the gramplets: self.clear_gramplets() # clear the columns: