Skip to content

ToolsRoundIn.OnDone - objectPointSav is never assigned to #251

@dsn27

Description

@dsn27

CS0469 - Field 'ToolsRoundIn.objectPointSav' is never assigned to, and will always have its default value

The code needs to fixed.

  • Remove dependency on objectPointSave
  • Assign value to objectPointSave
  • Choose a different relevant point

if (roundRad == 0.0)
{
if (iCurve1.PositionOf(objectPointSav) > 0.5)
iCurve1.Trim(0.0, iCurve1.PositionOf(objectPointSav));
else
{
iCurve1.Trim(iCurve1.PositionOf(objectPointSav), 1.0);
if (Frame.GetBooleanSetting("Construct.MakePath", true)) iCurve1.Reverse();
}
if (iCurve2.PositionOf(objectPointSav) > 0.5)
{
iCurve2.Trim(0.0, iCurve2.PositionOf(objectPointSav));
if (Frame.GetBooleanSetting("Construct.MakePath", true)) iCurve2.Reverse();
}
else iCurve2.Trim(iCurve2.PositionOf(objectPointSav), 1.0);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions