Commit 8204760a authored by Jon K Hellan's avatar Jon K Hellan Committed by Jon Kåre Hellan
Browse files

Don't make "Duplicate sheet name" message if sheet name did not change.

2000-05-11  Jon K Hellan  <hellan@acm.org>

	* src/workbook.c (workbook_rename_sheet): Don't make "Duplicate
	sheet name" message if sheet name did not change.
parent 777d750e
2000-05-11 Jon K Hellan <hellan@acm.org>
* src/workbook.c (workbook_rename_sheet): Don't make "Duplicate
sheet name" message if sheet name did not change.
2000-05-11 Michael Meeks <michael@helixcode.com>
* src/Makefile.am (gnumeric_libs): kill libole2 libs kludge.
......
2000-05-11 Jon K Hellan <hellan@acm.org>
* src/workbook.c (workbook_rename_sheet): Don't make "Duplicate
sheet name" message if sheet name did not change.
2000-05-11 Michael Meeks <michael@helixcode.com>
* src/Makefile.am (gnumeric_libs): kill libole2 libs kludge.
......
2000-05-11 Jon K Hellan <hellan@acm.org>
* src/workbook.c (workbook_rename_sheet): Don't make "Duplicate
sheet name" message if sheet name did not change.
2000-05-11 Michael Meeks <michael@helixcode.com>
* src/Makefile.am (gnumeric_libs): kill libole2 libs kludge.
......
2000-05-11 Jon K Hellan <hellan@acm.org>
* src/workbook.c (workbook_rename_sheet): Don't make "Duplicate
sheet name" message if sheet name did not change.
2000-05-11 Michael Meeks <michael@helixcode.com>
* src/Makefile.am (gnumeric_libs): kill libole2 libs kludge.
......
2000-05-11 Jon K Hellan <hellan@acm.org>
* src/workbook.c (workbook_rename_sheet): Don't make "Duplicate
sheet name" message if sheet name did not change.
2000-05-11 Michael Meeks <michael@helixcode.com>
* src/Makefile.am (gnumeric_libs): kill libole2 libs kludge.
......
2000-05-11 Jon K Hellan <hellan@acm.org>
* src/workbook.c (workbook_rename_sheet): Don't make "Duplicate
sheet name" message if sheet name did not change.
2000-05-11 Michael Meeks <michael@helixcode.com>
* src/Makefile.am (gnumeric_libs): kill libole2 libs kludge.
......
2000-05-11 Jon K Hellan <hellan@acm.org>
* src/workbook.c (workbook_rename_sheet): Don't make "Duplicate
sheet name" message if sheet name did not change.
2000-05-11 Michael Meeks <michael@helixcode.com>
* src/Makefile.am (gnumeric_libs): kill libole2 libs kludge.
......
......@@ -2732,6 +2732,10 @@ workbook_rename_sheet (CommandContext *context,
g_return_val_if_fail (old_name != NULL, TRUE);
g_return_val_if_fail (new_name != NULL, TRUE);
/* Did the name change? */
if (strcmp (old_name, new_name) == 0)
return TRUE;
if (strlen (new_name) < 1) {
gnumeric_error_invalid (context,
_("Sheet name"),
......
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