diff --git a/src/renderer/components/EditLayer.vue b/src/renderer/components/EditLayer.vue index 3884cf1..dd99afe 100644 --- a/src/renderer/components/EditLayer.vue +++ b/src/renderer/components/EditLayer.vue @@ -788,7 +788,7 @@ You should have received a copy of the GNU General Public License along with FG console.warn('No glueindex : ' + latlng.__vertex); } let distance = latlng.distanceTo(eventLatlng) - if (distance > 0 && distance < snap) { + if (distance >= 0 && distance < snap && latlng.glueindex >=0) { layers.push({d: distance, l: layer, latlng: latlng.__vertex.latlng, glueindex: latlng.glueindex}) } } else {