Skip to content

Commit

Permalink
Fix the XAxis of LineGraphWidget not being updated properly
Browse files Browse the repository at this point in the history
  • Loading branch information
abcdefg30 authored and pchote committed Oct 6, 2019
1 parent 75d6495 commit fd663cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenRA.Mods.Common/Widgets/LineGraphWidget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public override void Draw()
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);

Expand Down

0 comments on commit fd663cc

Please sign in to comment.