Remove unnecessary 'setDash'

This commit is contained in:
abakkk 2020-06-19 01:22:12 +02:00
parent 6f9b07b64d
commit a84d71bd5e
1 changed files with 0 additions and 3 deletions

View File

@ -256,7 +256,6 @@ var DrawingArea = new Lang.Class({
if (this.isInDrawingMode && this.hasGrid && this.gridGap && this.gridGap >= 1) { if (this.isInDrawingMode && this.hasGrid && this.gridGap && this.gridGap >= 1) {
cr.save(); cr.save();
Clutter.cairo_set_source_color(cr, this.gridColor); Clutter.cairo_set_source_color(cr, this.gridColor);
cr.setDash([], 0);
let [gridX, gridY] = [this.gridGap, this.gridGap]; let [gridX, gridY] = [this.gridGap, this.gridGap];
while (gridX < this.monitor.width) { while (gridX < this.monitor.width) {
@ -1170,8 +1169,6 @@ const DrawingElement = new Lang.Class({
if (this.dash.active) if (this.dash.active)
cr.setDash(this.dash.array, this.dash.offset); cr.setDash(this.dash.array, this.dash.offset);
else
cr.setDash([], 0);
if (this.eraser) if (this.eraser)
cr.setOperator(Cairo.Operator.CLEAR); cr.setOperator(Cairo.Operator.CLEAR);