mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-21 07:46:58 +02:00
fix unsolvable validator error for presets with locationSet
This commit is contained in:
@@ -244,7 +244,11 @@ export function validationMismatchedGeometry() {
|
||||
var asSource = presetManager.match(entity, graph);
|
||||
|
||||
var targetGeom = targetGeoms.find(nodeGeom => {
|
||||
var asTarget = presetManager.matchTags(entity.tags, nodeGeom);
|
||||
const asTarget = presetManager.matchTags(
|
||||
entity.tags,
|
||||
nodeGeom,
|
||||
entity.extent(graph).center(),
|
||||
);
|
||||
if (!asSource || !asTarget ||
|
||||
asSource === asTarget ||
|
||||
// sometimes there are two presets with the same tags for different geometries
|
||||
|
||||
Reference in New Issue
Block a user