Changeset 11060 for trunk/sources/HeuristicLab.Problems.TravelingSalesman.Views/3.3/PathTSPTourView.cs
- Timestamp:
- 06/30/14 18:30:14 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.TravelingSalesman.Views/3.3/PathTSPTourView.cs
r9456 r11060 108 108 109 109 using (Graphics graphics = Graphics.FromImage(bitmap)) { 110 if ( (permutation != null) && (permutation.Length == coordinates.Rows) && (permutation.Validate())) {110 if (permutation != null && permutation.Length > 1) { 111 111 Point[] tour = new Point[permutation.Length]; 112 112 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]]; 114 115 } 115 116 graphics.DrawPolygon(Pens.Black, tour);
Note: See TracChangeset
for help on using the changeset viewer.