loleaflet/src/control/Toolbar.js |    4 ++++
 loleaflet/src/map/Map.js         |    1 +
 2 files changed, 5 insertions(+)

New commits:
commit 3f832fdc1beaf87ebe1d509d047e0c9fcbd1edb6
Author: Henry Castro <hcas...@collabora.com>
Date:   Mon Oct 3 20:16:00 2016 -0400

    loleaflet: initialize fatal flag

diff --git a/loleaflet/src/control/Toolbar.js b/loleaflet/src/control/Toolbar.js
index 54a1d95..19eeaa9 100644
--- a/loleaflet/src/control/Toolbar.js
+++ b/loleaflet/src/control/Toolbar.js
@@ -48,6 +48,10 @@ L.Map.include({
        },
 
        downloadAs: function (name, format, options, id) {
+               if (this._fatal) {
+                       return;
+               }
+
                if (format === undefined || format === null) {
                        format = '';
                }
diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index 3bcc9a2..df45177 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -65,6 +65,7 @@ L.Map = L.Evented.extend({
                this._sizeChanged = true;
                this._bDisableKeyboard = false;
                this._active = true;
+               this._fatal = false;
                this._enabled = true;
 
                vex.dialogID = -1;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to