Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: index out of bounds when clicking the green or yellow symbol … #694

Draft
wants to merge 5 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SourceCode/GPS/Classes/CABCurve.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class CABCurve

public bool isHeadingSameWay = true, lastIsHeadingSameWay = true;

public double howManyPathsAway, lastHowManyPathsAway;
public int howManyPathsAway, lastHowManyPathsAway;
public vec2 refPoint1 = new vec2(1, 1), refPoint2 = new vec2(2, 2);

private int A, B, C;
Expand Down
2 changes: 1 addition & 1 deletion SourceCode/GPS/Classes/CABLine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class CABLine
//List of all available ABLines
public CTrk refLine = new CTrk();

public double howManyPathsAway, lastHowManyPathsAway;
public int howManyPathsAway, lastHowManyPathsAway;
public bool isMakingABLine;
public bool isHeadingSameWay = true, lastIsHeadingSameWay;

Expand Down
2 changes: 1 addition & 1 deletion SourceCode/GPS/Classes/CTrack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ public class CTrk
public vec2 endPtB;
public TrackMode mode;
public double nudgeDistance;
public List<double> workedTracks = new List<double>();
public HashSet<int> workedTracks = new HashSet<int>();

public CTrk()
{
Expand Down
2 changes: 1 addition & 1 deletion SourceCode/GPS/Classes/CYouTurn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public CYouTurn(FormGPS _f)
//find next not worked lane after the defined lanes to skip
private int GetNextNotWorkedTrack(bool isTurnLeft, int rowSkipsWidth, bool isAB)
{
double goalLane;
int goalLane;

if (isAB)
{
Expand Down
26 changes: 12 additions & 14 deletions SourceCode/GPS/Forms/Sections.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.