make check for name collision case insensitive
This commit is contained in:
parent
362be76526
commit
48aedb2c3c
1 changed files with 4 additions and 1 deletions
|
|
@ -181,7 +181,10 @@ namespace MatterHackers.MatterControl.DesignTools
|
|||
// first replace spaces with '_'
|
||||
var name = editSelectedName.Text.Replace(' ', '_');
|
||||
// next make sure we don't have the exact name already
|
||||
name = agg_basics.GetNonCollidingName(name, existingNames, false);
|
||||
name = agg_basics.GetNonCollidingName(name, (name) =>
|
||||
{
|
||||
return !existingNames.Contains(name.ToLower());
|
||||
}, false);
|
||||
editSelectedName.Text = name;
|
||||
SheetData[selectedCell.x, selectedCell.y].Name = name;
|
||||
SheetData.Recalculate();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue