summaryrefslogtreecommitdiff
path: root/htdocs
diff options
context:
space:
mode:
Diffstat (limited to 'htdocs')
-rw-r--r--htdocs/streeteditor.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/htdocs/streeteditor.js b/htdocs/streeteditor.js
index 8b86a4a..27addb5 100644
--- a/htdocs/streeteditor.js
+++ b/htdocs/streeteditor.js
@@ -28,6 +28,8 @@ if (editor_mode) {
}
function onDragEnd(e) {
+ if (!polyline)
+ return;
var latlngs = polyline.getLatLngs();
for (var i = 0; i < latlngs.length; i++) {