Skip to content

Commit

Permalink
Merge ad3bd87 into fd7aba2
Browse files Browse the repository at this point in the history
  • Loading branch information
muramura committed Jun 26, 2021
2 parents fd7aba2 + ad3bd87 commit af389be
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion GCSViews/FlightPlanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2940,7 +2940,16 @@ private Locationwp DataViewtoLocationwp(int a)
false);
}

temp.p1 = float.Parse(Commands.Rows[a].Cells[Param1.Index].Value.ToString());
if (Commands.Rows[a].Cells[Command.Index].Value.Equals("WAYPOINT"))
{
temp.p1 = float.Parse(Commands.Rows[a].Cells[Param1.Index].Value.ToString());
if (temp.p1 < 0)
{
temp.p1 = 0;
DataGridViewTextBoxCell cell = Commands.Rows[a].Cells[Param1.Index] as DataGridViewTextBoxCell;
cell.Value = temp.p1;
}
}

temp.alt =
(float)
Expand Down

0 comments on commit af389be

Please sign in to comment.