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.
This commit is contained in:
ahocevar
2014-03-10 18:18:41 +01:00
parent 6cadc2b9ab
commit 127cce7973

View File

@@ -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;