Commit 8cfa18c5 authored by Robert Sprowson's avatar Robert Sprowson

Don't silently do nothing when trying to rename to a duplicate name

Paint, when renaming a sprite via alt-clicking on the name, would silently do nothing if the target name already exists. This was different behaviour to renaming via the menu (which gives "Sprite name already exists") and the Filer (which gives "Filename already exists". Now, alt-click-rename also gives a suitable error.

Version 2.14. Tagged as 'Paint-2_14'
parent 88a57a1e
......@@ -11,13 +11,13 @@
GBLS Module_HelpVersion
GBLS Module_ComponentName
GBLS Module_ComponentPath
Module_MajorVersion SETS "2.13"
Module_Version SETA 213
Module_MajorVersion SETS "2.14"
Module_Version SETA 214
Module_MinorVersion SETS ""
Module_Date SETS "05 Sep 2012"
Module_ApplicationDate SETS "05-Sep-12"
Module_Date SETS "13 Jul 2013"
Module_ApplicationDate SETS "13-Jul-13"
Module_ComponentName SETS "Paint"
Module_ComponentPath SETS "castle/RiscOS/Sources/Apps/Paint"
Module_FullVersion SETS "2.13"
Module_HelpVersion SETS "2.13 (05 Sep 2012)"
Module_FullVersion SETS "2.14"
Module_HelpVersion SETS "2.14 (13 Jul 2013)"
END
/* (2.13)
/* (2.14)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 2.13
#define Module_MajorVersion_CMHG 2.14
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 05 Sep 2012
#define Module_Date_CMHG 13 Jul 2013
#define Module_MajorVersion "2.13"
#define Module_Version 213
#define Module_MajorVersion "2.14"
#define Module_Version 214
#define Module_MinorVersion ""
#define Module_Date "05 Sep 2012"
#define Module_Date "13 Jul 2013"
#define Module_ApplicationDate "05-Sep-12"
#define Module_ApplicationDate "13-Jul-13"
#define Module_ComponentName "Paint"
#define Module_ComponentPath "castle/RiscOS/Sources/Apps/Paint"
#define Module_FullVersion "2.13"
#define Module_HelpVersion "2.13 (05 Sep 2012)"
#define Module_LibraryVersionInfo "2:13"
#define Module_FullVersion "2.14"
#define Module_HelpVersion "2.14 (13 Jul 2013)"
#define Module_LibraryVersionInfo "2:14"
......@@ -43,9 +43,6 @@ static void altrename_renamesprite (main_sprite *sprite, char *newname)
if (*newname == 0) return;
/* check if new name exists */
if (!sprite_select (sprite->file->spritearea,&sid)) return;
strncpy (name, psprite_address (sprite)->name, NAME_LIMIT);
name[NAME_LIMIT] = 0;
sid.s.name = 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