diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e294499..a0696f7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +v0.6.72 +* Bug fix + v0.6.71 * [web] Added a new edit mode for polyline layers: line drawing combined with line reshaping (by adding and dragging vertices), removed the old "edit vertices" menu item. * [web] Added attribute editing to the inspection control, removed the "edit attributes" menu item. diff --git a/package-lock.json b/package-lock.json index 8a9ece1b..86972f70 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "mapshaper", - "version": "0.6.71", + "version": "0.6.72", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "mapshaper", - "version": "0.6.71", + "version": "0.6.72", "license": "MPL-2.0", "dependencies": { "@placemarkio/tokml": "^0.3.3", diff --git a/package.json b/package.json index b7c9b096..499cd2fc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mapshaper", - "version": "0.6.71", + "version": "0.6.72", "description": "A tool for editing vector datasets for mapping and GIS.", "keywords": [ "shapefile", diff --git a/src/gui/gui-draw-lines2.mjs b/src/gui/gui-draw-lines2.mjs index 710c6388..cb90c579 100644 --- a/src/gui/gui-draw-lines2.mjs +++ b/src/gui/gui-draw-lines2.mjs @@ -364,7 +364,7 @@ export function initLineEditing(gui, ext, hit) { if (pixelDist > HOVER_THRESHOLD || pathLen < 4) { return null; } - var point = translateDisplayPoint([x, y]); + var point = translateDisplayPoint(target, [x, y]); return { target, ids: [id], extendable: false, point };