When applying a pending fill, also apply a pending stroke

This commit is contained in:
Andreas Hocevar
2017-01-11 18:32:58 +01:00
parent c09c7ef3e2
commit 7b232700d5

View File

@@ -459,6 +459,10 @@ ol.render.canvas.Replay.prototype.replay_ = function(
if (pendingFill) {
this.fill_(context, viewRotation);
pendingFill = 0;
if (pendingStroke) {
context.stroke();
pendingStroke = 0;
}
}
context.fillStyle = /** @type {ol.ColorLike} */ (instruction[1]);