Fix fillStyle or strokeStyle defined assertion

This commit is contained in:
Andreas Hocevar
2016-09-16 14:21:10 +02:00
parent 49e2e55063
commit e87c198eef

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,