loleaflet/src/layer/tile/TileLayer.js |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit da1992103dd77719df97692af3ff17a6fd932792
Author: Mihai Varga <mihai.va...@collabora.com>
Date:   Wed Sep 2 18:16:59 2015 +0300

    loleaflet: sometimes the graphic marker is not created
    
    It was reported to me but I couldn't reproduce. I suspect some invalid
    coordinates

diff --git a/loleaflet/src/layer/tile/TileLayer.js 
b/loleaflet/src/layer/tile/TileLayer.js
index 97ced2f..877c67e 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -549,6 +549,10 @@ L.TileLayer = L.GridLayer.extend({
                                this._map.removeLayer(this._graphicMarker);
                        }
                        this._graphicMarker = 
L.rectangle(this._graphicSelection, {fill: false});
+                       if (!this._graphicMarker) {
+                               this._map.fire('error', {msg: 'Graphic marker 
initialization'});
+                               return;
+                       }
                        this._graphicMarker.editing.enable();
                        this._graphicMarker.on('editstart editend', 
this._onGraphicEdit, this);
                        this._map.addLayer(this._graphicMarker);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to