Changeset 11290


Ignore:
Timestamp:
08/20/14 10:19:16 (5 years ago)
Author:
pfleck
Message:

#2228
reverted r11071 to reenable index check.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.TravelingSalesman.Views/3.3/PathTSPTourView.cs

    r11171 r11290  
    111111                Point[] tour = new Point[permutation.Length];
    112112                for (int i = 0; i < permutation.Length; i++) {
    113                   tour[i] = points[permutation[i]];
     113                  if (permutation[i] >= 0 && permutation[i] < points.Length)
     114                    tour[i] = points[permutation[i]];
    114115                }
    115116                graphics.DrawPolygon(Pens.Black, tour);
Note: See TracChangeset for help on using the changeset viewer.