AddArc() drawing a line from rectangle origin to arc start

I am trying to create a path with a simple arc in it. For some reason everytime I use AddArc() a line is drawn from the origin of the rectangle specified in the parameters of the function to the start of the arc. Here is my code:

juce::Path newPath;

newPath.addArc(0, 0, getWidth(), getHeight(), juce::float_Pi * 0.25, juce::float_Pi * 1.75);

g.strokePath(newPath, juce::PathStrokeType(1.0));

For reference the path is being created within a button component using paintButton().

Got it it was the last parameter of addArc(). It needed to be set to true