From 127cce79737ebb70b98ae32d7bf44a7e212938ac Mon Sep 17 00:00:00 2001 From: ahocevar Date: Mon, 10 Mar 2014 18:18:41 +0100 Subject: [PATCH] Fix the pointer index It has to point to the end of the current block, not to the beginning of the next block. See L581. --- src/ol/render/canvas/canvasreplay.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/render/canvas/canvasreplay.js b/src/ol/render/canvas/canvasreplay.js index 3e4444861e..6bd974abb6 100644 --- a/src/ol/render/canvas/canvasreplay.js +++ b/src/ol/render/canvas/canvasreplay.js @@ -490,7 +490,7 @@ ol.render.canvas.Replay.prototype.reverseHitDetectionInstructions_ = goog.asserts.assert(begin == -1); begin = i; } else if (type == ol.render.canvas.Instruction.BEGIN_GEOMETRY) { - instruction[2] = i + 1; + instruction[2] = i; goog.asserts.assert(begin >= 0); ol.array.reverseSubArray(this.hitDetectionInstructions, begin, i); begin = -1;