From 88ecbcc06999e796b9f91986aa0cfa1beb1015a0 Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Wed, 6 Feb 2019 13:10:22 -0500 Subject: [PATCH] Make the tag_suggests_area connection fix always use the location of the first node --- modules/validations/tag_suggests_area.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/validations/tag_suggests_area.js b/modules/validations/tag_suggests_area.js index e3b1469eb..4a2078a6e 100644 --- a/modules/validations/tag_suggests_area.js +++ b/modules/validations/tag_suggests_area.js @@ -10,8 +10,8 @@ import { } from '../core/validator'; import { actionAddVertex, - actionConnect, - actionChangeTags + actionChangeTags, + actionMergeNodes } from '../actions'; import { geoHasSelfIntersections, geoSphericalDistance } from '../geo'; @@ -48,7 +48,7 @@ export function validationTagSuggestsArea() { connectEndpointsOnClick = function() { var way = this.issue.entities[0]; context.perform( - actionConnect([way.nodes[0], way.nodes[way.nodes.length-1]]), + actionMergeNodes([way.nodes[0], way.nodes[way.nodes.length-1]], nodes[0].loc), t('issues.fix.connect_endpoints.undo_redo') ); };