Skip to content

Commit

Permalink
Fix a wrong variable name.
Browse files Browse the repository at this point in the history
  • Loading branch information
manthey committed Sep 7, 2021
1 parent d9eb72e commit e8a7b78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/annotation.js
Original file line number Diff line number Diff line change
Expand Up @@ -1157,7 +1157,7 @@ function continuousVerticesProcessAction(m_this, evt, name) {
update = true;
}
if ((ccp || ccp === 0) && evt.event === geo_event.actionup &&
(cpp === true || layer.displayDistance(vertices[0], null, evt.mouse.map, 'display') <= cpp)) {
(ccp === true || layer.displayDistance(vertices[0], null, evt.mouse.map, 'display') <= cpp)) {
if (vertices.length < 3 + (name === 'polygon' ? 1 : 0)) {
return 'remove';
}
Expand Down

0 comments on commit e8a7b78

Please sign in to comment.