Merge pull request #5893 from ahocevar/fix-assertion

Fix fillStyle or strokeStyle defined assertion
This commit is contained in:
Andreas Hocevar
2016-09-16 15:06:20 +02:00
committed by GitHub

View File

@@ -176,7 +176,7 @@ ol.render.canvas.PolygonReplay.prototype.drawPolygon = function(polygonGeometry,
var state = this.state_;
ol.DEBUG && console.assert(state, 'state should not be null');
var strokeStyle = state.strokeStyle;
ol.DEBUG && console.assert(state.fillStyle === undefined && strokeStyle === undefined,
ol.DEBUG && console.assert(state.fillStyle !== undefined || strokeStyle !== undefined,
'fillStyle or strokeStyle should be defined');
if (strokeStyle !== undefined) {
ol.DEBUG && console.assert(state.lineWidth !== undefined,