Turns out the error was generated in the FIRST
g.DrawArc(SystemPens.ButtonFace, outerCircle[-1], 115, 220);
statement. Still not sure why it didn't complain until the next one but the way I discovered it was by adding a line:
Console.WriteLine("Finished first arc");
after the first arc draw. The error then popped up on the Console.WriteLine
.
Of course Console.WriteLine
wasn't erroring so that means it had to have rolled over from the previous statement which attempted to resize a rectangle to negative size and draw an arc in it.
Changing the [-1]
to [150]
solved the problem.