Do not render label with the current linedash

This commit is contained in:
Andreas Hocevar
2020-02-14 13:50:03 +01:00
parent 0e9b43ed93
commit 0471b6e650

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);
}