Commit d63a1322 authored by Morten Welinder's avatar Morten Welinder Committed by Morten Welinder

Prevent renames to "".

2005-06-20  Morten Welinder  <terra@gnome.org>

	* src/commands.c (cmd_rename_sheet): Prevent renames to "".
parent bd44eac1
2005-06-20 Morten Welinder <terra@gnome.org>
* src/commands.c (cmd_rename_sheet): Prevent renames to "".
2005-06-14 Morten Welinder <terra@gnome.org>
* src/gnumeric-gconf.c (gnm_gconf_get_toolbar_visible,
......
......@@ -4,6 +4,7 @@ Morten:
* Make changes to toolbar visibility permanent.
* Fix stf export quoting problem. [#308109]
* Fix stf export format problem.
* Prevent sheets from being renamed to "".
--------------------------------------------------------------------------
Gnumeric 1.5.2
......
2005-06-20 Morten Welinder <terra@gnome.org>
* src/commands.c (cmd_rename_sheet): Prevent renames to "".
2005-06-14 Morten Welinder <terra@gnome.org>
* src/gnumeric-gconf.c (gnm_gconf_get_toolbar_visible,
......
......@@ -5313,6 +5313,9 @@ cmd_rename_sheet (WorkbookControl *wbc,
g_return_val_if_fail (new_name != NULL, TRUE);
g_return_val_if_fail (sheet != NULL, TRUE);
if (*new_name == 0)
return TRUE;
collision = workbook_sheet_by_name (sheet->workbook, new_name);
if (collision && collision != sheet) {
g_warning ("Sheet name collision.\n");
......
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