Properly use the "Continued an area" annotation for the second vertex in an area instead of "Started an area" (re: #7772)

This commit is contained in:
Quincy Morgan
2020-09-02 11:08:06 -04:00
parent a1987e21d9
commit 6521184cf3

View File

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