From 6521184cf3b317f4e16f205949e00286d271a111 Mon Sep 17 00:00:00 2001 From: Quincy Morgan <2046746+quincylvania@users.noreply.github.com> Date: Wed, 2 Sep 2020 11:08:06 -0400 Subject: [PATCH] Properly use the "Continued an area" annotation for the second vertex in an area instead of "Started an area" (re: #7772) --- modules/behavior/draw_way.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/behavior/draw_way.js b/modules/behavior/draw_way.js index 56c7ef5ab..fb6d5cd2e 100644 --- a/modules/behavior/draw_way.js +++ b/modules/behavior/draw_way.js @@ -242,7 +242,7 @@ export function behaviorDrawWay(context, wayID, mode, startGraph) { _headNodeID = typeof _nodeIndex === 'number' ? _origWay.nodes[_nodeIndex] : (_origWay.isClosed() ? _origWay.nodes[_origWay.nodes.length - 2] : _origWay.nodes[_origWay.nodes.length - 1]); _wayGeometry = _origWay.geometry(context.graph()); - _annotation = t((_origWay.isDegenerate() ? + _annotation = t((_origWay.nodes.length === (_origWay.isClosed() ? 2 : 1) ? 'operations.start.annotation.' : 'operations.continue.annotation.') + _wayGeometry );