commit
c44061d2ed
2 changed files with 12 additions and 2 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();
|
||||
|
|
|
|||
|
|
@ -4,7 +4,14 @@
|
|||
<TargetFramework>net6.0-windows</TargetFramework>
|
||||
<Company>MatterHackers Inc.</Company>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<BaseOutputPath>$(SolutionDir)bin</BaseOutputPath>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
||||
<OutputPath>..\..\MatterControl\bin\Release\</OutputPath>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||
<OutputPath>..\..\MatterControl\bin\Debug\</OutputPath>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue