This fixes part of #647 that I complained about in comment.
I tested locally that Windows libgdiplus in fact resets the dash array on DashStyleCustom -> DashStyleDashDot -> DashStyleCustom transition done using GdipSetPenDashStyle. Following this transition GdipGetPenDashArray returns the Dash-Dot pattern and not the original custom one.
This fixes part of #647 that I complained about in comment.
I tested locally that Windows libgdiplus in fact resets the dash array on
DashStyleCustom
->DashStyleDashDot
->DashStyleCustom
transition done usingGdipSetPenDashStyle
. Following this transitionGdipGetPenDashArray
returns the Dash-Dot pattern and not the original custom one.