Bug in Graphics::strokePath sometimes nothing appears


#1

Took me a while to debug this one.

Graphics::strokePath doesn’t work if you:

  1. set the colour to a transparent colour
  2. set a brush
  3. call strokePath

It’s a simple fix:

The following test shouldn’t just check the colour, it should also check if there is a brush

if (! state->colour.isTransparent())
{
    Path stroke;
    strokeType.createStrokedPath (stroke, path, transform);
    fillPath (stroke);
}

#2

Ah, yes! Cheers for that one Roland!