From db7614b44912cda4ca7ecd31995614172d54ce8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Tue, 15 Sep 2015 21:36:02 +0200 Subject: [PATCH] Debug editing PolyLines - no poly.options.editing.fill property --- dist/leaflet.draw-src.js | 3 ++- src/edit/handler/Edit.Poly.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dist/leaflet.draw-src.js b/dist/leaflet.draw-src.js index 80f202862..3d0e48949 100644 --- a/dist/leaflet.draw-src.js +++ b/dist/leaflet.draw-src.js @@ -1150,7 +1150,8 @@ L.Edit.Poly = L.Handler.extend({ var poly = this._poly; if (!(poly instanceof L.Polygon)) { - poly.options.editing.fill = false; + if(poly.options.editing) + poly.options.editing.fill = false; } poly.setStyle(poly.options.editing); diff --git a/src/edit/handler/Edit.Poly.js b/src/edit/handler/Edit.Poly.js index 3ee4e2128..d5387e2fc 100644 --- a/src/edit/handler/Edit.Poly.js +++ b/src/edit/handler/Edit.Poly.js @@ -21,7 +21,8 @@ L.Edit.Poly = L.Handler.extend({ var poly = this._poly; if (!(poly instanceof L.Polygon)) { - poly.options.editing.fill = false; + if(poly.options.editing) + poly.options.editing.fill = false; } poly.setStyle(poly.options.editing);