- Timestamp:
- 08/12/14 14:34:46 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.Orienteering.Views/3.3/OrienteeringSolutionView.cs
r11268 r11276 23 23 using System.Drawing; 24 24 using System.Linq; 25 using HeuristicLab.Common; 25 26 using HeuristicLab.Core.Views; 26 27 using HeuristicLab.MainForm; … … 121 122 for (int i = 0; i < points.Length; i++) { 122 123 double score = scores[i]; 123 int size = (int)Math.Round(((score - scoreMin) / scoreRange) * 8 + 2); 124 int size = scoreRange.IsAlmost(0.0) 125 ? 6 126 : (int)Math.Round(((score - scoreMin) / scoreRange) * 8 + 2); 124 127 graphics.FillRectangle(Brushes.Red, points[i].X - size / 2, points[i].Y - size / 2, size, size); 125 128 }
Note: See TracChangeset
for help on using the changeset viewer.