From 7ee04ec200ace6605183a309c698d58b58473d1b Mon Sep 17 00:00:00 2001 From: Thomas Chandelle Date: Mon, 14 Nov 2016 09:50:47 +0100 Subject: [PATCH] Compare current linedash and new linedash as arrays --- src/ol/render/canvas/polygonreplay.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ol/render/canvas/polygonreplay.js b/src/ol/render/canvas/polygonreplay.js index 20e4bd27a6..f5a5b13290 100644 --- a/src/ol/render/canvas/polygonreplay.js +++ b/src/ol/render/canvas/polygonreplay.js @@ -1,6 +1,7 @@ goog.provide('ol.render.canvas.PolygonReplay'); goog.require('ol'); +goog.require('ol.array'); goog.require('ol.color'); goog.require('ol.colorlike'); goog.require('ol.extent'); @@ -367,7 +368,7 @@ ol.render.canvas.PolygonReplay.prototype.setFillStrokeStyles_ = function(geometr 'miterLimit should be defined'); if (state.currentStrokeStyle != strokeStyle || state.currentLineCap != lineCap || - state.currentLineDash != lineDash || + !ol.array.equals(state.currentLineDash, lineDash) || state.currentLineJoin != lineJoin || state.currentLineWidth != lineWidth || state.currentMiterLimit != miterLimit) {