From 0436dc9f5725091a4ae6d988f4bdc999dcac416b Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Thu, 19 Feb 2004 00:30:42 +0000 Subject: Fix off-by-one error when computing the height of the table. 2004-02-19 Christian Persch * lib/egg/egg-toolbar-editor.c: (update_editor_sheet): Fix off-by-one error when computing the height of the table. --- lib/egg/egg-toolbar-editor.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/egg') diff --git a/lib/egg/egg-toolbar-editor.c b/lib/egg/egg-toolbar-editor.c index 7924e91ef..e77c801f0 100755 --- a/lib/egg/egg-toolbar-editor.c +++ b/lib/egg/egg-toolbar-editor.c @@ -14,6 +14,8 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * $Id$ */ #include "egg-toolbar-editor.h" @@ -511,7 +513,7 @@ update_editor_sheet (EggToolbarEditor *editor) x = y = 0; width = 4; - height = (g_list_length (to_drag) - 1) / width + 1; + height = (g_list_length (to_drag)) / width + 1; gtk_table_resize (GTK_TABLE (editor->priv->table), height, width); for (l = to_drag; l != NULL; l = l->next) -- cgit v1.2.3