Improving sheet parsing
This commit is contained in:
parent
75b98676e2
commit
beb526a41a
2 changed files with 4 additions and 4 deletions
|
|
@ -96,7 +96,7 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
|
|||
|
||||
var updateItems = SheetObject3D.SortAndLockUpdateItems(this, (item) =>
|
||||
{
|
||||
if (!SheetObject3D.HasExpressionWithString(item, "[index]", false))
|
||||
if (!SheetObject3D.HasExpressionWithString(item, "=", true))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
|
||||
double.TryParse(xyzStrings[0], out double currentXValue);
|
||||
|
||||
xEditWidget = new MHNumberEdit(currentXValue, theme, 'X', allowNegatives: true, allowDecimals: true, pixelWidth: VectorXYZEditWidth, tabIndex: tabIndex)
|
||||
xEditWidget = new MHNumberEdit(currentXValue, theme, 'X', allowNegatives: true, allowDecimals: true, pixelWidth: VectorXYZEditWidth, tabIndex: tabIndex++)
|
||||
{
|
||||
ToolTipText = this.HelpText,
|
||||
TabIndex = tabIndex,
|
||||
|
|
@ -93,7 +93,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
|
||||
double.TryParse(xyzStrings[1], out double currentYValue);
|
||||
|
||||
yEditWidget = new MHNumberEdit(currentYValue, theme, 'Y', allowNegatives: true, allowDecimals: true, pixelWidth: VectorXYZEditWidth, tabIndex: tabIndex)
|
||||
yEditWidget = new MHNumberEdit(currentYValue, theme, 'Y', allowNegatives: true, allowDecimals: true, pixelWidth: VectorXYZEditWidth, tabIndex: tabIndex++)
|
||||
{
|
||||
ToolTipText = this.HelpText,
|
||||
TabIndex = tabIndex + 1,
|
||||
|
|
@ -115,7 +115,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
|
||||
double.TryParse(xyzStrings[2], out double currentZValue);
|
||||
|
||||
zEditWidget = new MHNumberEdit(currentZValue, theme, 'Z', allowNegatives: true, allowDecimals: true, pixelWidth: VectorXYZEditWidth, tabIndex: tabIndex)
|
||||
zEditWidget = new MHNumberEdit(currentZValue, theme, 'Z', allowNegatives: true, allowDecimals: true, pixelWidth: VectorXYZEditWidth, tabIndex: tabIndex++)
|
||||
{
|
||||
ToolTipText = this.HelpText,
|
||||
TabIndex = tabIndex + 1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue