Commit 02380d64 authored by Morten Welinder's avatar Morten Welinder Committed by Morten Welinder

Don't allow the user to create more than SHEET_MAX_COLS columns.

2003-06-06  Morten Welinder  <terra@gnome.org>

	* dialog-stf-fixed-page.c (cb_col_event): Don't allow the user to
	create more than SHEET_MAX_COLS columns.
parent 48e0ca03
2003-06-06 Morten Welinder <terra@gnome.org>
* dialog-stf-fixed-page.c (cb_col_event): Don't allow the user to
create more than SHEET_MAX_COLS columns.
2003-06-05 Jody Goldberg <jody@gnome.org>
* dialog-plugin-manager.c (cb_pm_button_directory_add_clicked) : doh!
......
......@@ -107,6 +107,16 @@ cb_col_event (GtkWidget *button,
PangoFontDescription *font_desc;
int dx, width;
if (data->fixed.renderdata->colcount >= SHEET_MAX_COLS) {
char *msg = g_strdup_printf
(_("You cannot have more than %d columns in "
"this version of Gnumeric."),
SHEET_MAX_COLS);
gnumeric_notice (data->wbcg, GTK_MESSAGE_ERROR, msg);
g_free (msg);
return TRUE;
}
if (col == 0)
colstart = 0;
else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment