Improve the Pattern-detection in CanvasGraphics.stroke
#12591
Merged
CanvasGraphics.stroke
#12591