Skip to content

Commit

Permalink
Little error in drawing path fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
cstdvd committed Jun 22, 2015
1 parent 10d1a4c commit a7589d6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ private void navigation(NavigableItem item)
tileView.removeNavigablePath(pathId);

MapGraph.State destination = multigraph.getState(Parameters.SENSORS, item.getSensorId());
if(mySensor.id.equals(destination.id)) {
if(!mySensor.id.equals(destination.id)) {
List<MapGraph.State> path = multigraph.getPath(Parameters.SENSORS, mySensor.id, destination.id);
List<double[]> positions = new ArrayList<>();
for (MapGraph.State s : path) {
Expand Down

0 comments on commit a7589d6

Please sign in to comment.