Commit 38f2d14b authored by Chema Celorio's avatar Chema Celorio Committed by Jose Maria Celorio

add an env variable so that we can enable XL overwrite. the variable is

2001-04-12  Chema Celorio  <chema@celorio.com>

	* boot.c (excel_save): add an env variable so that we can
	enable XL overwrite. the variable is named GNUMERIC_ENABLE_XL_OVERWRITE
parent e15d0a2c
2001-04-12 Chema Celorio <chema@celorio.com>
* boot.c (excel_save): add an env variable so that we can
enable XL overwrite. the variable is named GNUMERIC_ENABLE_XL_OVERWRITE
2001-04-12 Jody Goldberg <jgoldberg@home.com>
* ms-excel-write.c (pre_pass) : Don't unref here.
......
......@@ -144,9 +144,15 @@ excel_save (IOContext *context, WorkbookView *wb_view, const char *filename,
void *state = NULL;
if (g_file_exists (filename)) {
gnumeric_io_error_save (context,
_("Saving over old Excel files disabled for safety"));
return;
gchar *disable_safety;
disable_safety = getenv ("GNUMERIC_ENABLE_XL_OVERWRITE");
if (disable_safety == NULL) {
gnumeric_io_error_save (context,
_("Saving over old Excel files disabled for safety"));
return;
}
}
if (ms_excel_check_write (context, &state, wb_view, ver) != 0) {
......
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