From a84d71bd5e320515d5d9c0ec6d14d48c7f5fd412 Mon Sep 17 00:00:00 2001 From: abakkk Date: Fri, 19 Jun 2020 01:22:12 +0200 Subject: [PATCH] Remove unnecessary 'setDash' --- draw.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/draw.js b/draw.js index 17419ec..d50683e 100644 --- a/draw.js +++ b/draw.js @@ -256,7 +256,6 @@ var DrawingArea = new Lang.Class({ if (this.isInDrawingMode && this.hasGrid && this.gridGap && this.gridGap >= 1) { cr.save(); Clutter.cairo_set_source_color(cr, this.gridColor); - cr.setDash([], 0); let [gridX, gridY] = [this.gridGap, this.gridGap]; while (gridX < this.monitor.width) { @@ -1170,8 +1169,6 @@ const DrawingElement = new Lang.Class({ if (this.dash.active) cr.setDash(this.dash.array, this.dash.offset); - else - cr.setDash([], 0); if (this.eraser) cr.setOperator(Cairo.Operator.CLEAR);