Fix canvas replay which broke with 31a68e2

See #4192
This commit is contained in:
Andreas Hocevar
2015-10-04 23:12:39 +02:00
parent faff14c44c
commit deea8060af

View File

@@ -1577,8 +1577,8 @@ ol.render.canvas.TextReplay.prototype.drawText =
var myBegin = this.coordinates.length;
var myEnd =
this.appendFlatCoordinates(flatCoordinates, offset, end, stride, false);
var fill = this.textFillState_;
var stroke = this.textStrokeState_;
var fill = !!this.textFillState_;
var stroke = !!this.textStrokeState_;
var drawTextInstruction = [
ol.render.canvas.Instruction.DRAW_TEXT, myBegin, myEnd, this.text_,
this.textOffsetX_, this.textOffsetY_, this.textRotation_, this.textScale_,