Merge pull request #10667 from ahocevar/label-linedash

Do not render label with the current linedash
This commit is contained in:
Andreas Hocevar
2020-02-14 14:31:43 +01:00
committed by GitHub

View File

@@ -204,7 +204,7 @@ class Executor {
contextInstructions.push('lineCap', strokeState.lineCap);
contextInstructions.push('lineJoin', strokeState.lineJoin);
contextInstructions.push('miterLimit', strokeState.miterLimit);
if (CanvasRenderingContext2D.prototype.setLineDash && strokeState.lineDash.length) {
if (CanvasRenderingContext2D.prototype.setLineDash) {
contextInstructions.push('setLineDash', [strokeState.lineDash]);
contextInstructions.push('lineDashOffset', strokeState.lineDashOffset);
}