Changeset 11064 for branches/DataPreprocessing/HeuristicLab.Problems.TravelingSalesman.Views/3.3/PathTSPTourView.cs
- Timestamp:
- 07/01/14 10:53:46 (10 years ago)
- Location:
- branches/DataPreprocessing
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing
- Property svn:mergeinfo changed
/trunk/sources merged: 11008,11012-11014,11019,11024-11027,11031,11034-11035,11048,11050-11052,11056-11058,11060
- Property svn:mergeinfo changed
-
branches/DataPreprocessing/HeuristicLab.Problems.TravelingSalesman.Views
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.TravelingSalesman.Views (added) merged: 11060
- Property svn:mergeinfo changed
-
branches/DataPreprocessing/HeuristicLab.Problems.TravelingSalesman.Views/3.3/PathTSPTourView.cs
r9456 r11064 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.