Fix the XAxis of LineGraphWidget not being updated properly

This commit is contained in:
abcdefg30
2019-10-05 16:20:37 +02:00
committed by Paul Chote
parent 548ff411ef
commit ab87e78dff

View File

@@ -134,7 +134,7 @@ namespace OpenRA.Mods.Common.Widgets
var xStep = width / xAxisSize;
var yStep = height / yAxisSize;
var pointCount = series.First().Points.Count();
var pointCount = series.Max(s => s.Points.Count());
var pointStart = Math.Max(0, pointCount - xAxisSize);
var pointEnd = Math.Max(pointCount, xAxisSize);