[Libreoffice-commits] online.git: loleaflet/src

Szymon Kłos (via logerrit) logerrit at kemper.freedesktop.org
Thu Nov 7 13:38:26 UTC 2019


 loleaflet/src/control/Control.Menubar.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 27d90f6084384978528e938e1a84037dc3d92519
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Thu Nov 7 14:37:26 2019 +0100
Commit:     Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Thu Nov 7 14:37:36 2019 +0100

    Avoid undefined on saving using menu on mobile
    
    Change-Id: I77602996f2b965fa568faeb219e32602d33c7ef4

diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js
index 68d06eedc..c9074e348 100644
--- a/loleaflet/src/control/Control.Menubar.js
+++ b/loleaflet/src/control/Control.Menubar.js
@@ -1046,7 +1046,7 @@ L.Control.Menubar = L.Control.extend({
 
 		if (id === 'save') {
 			// Save only when not read-only.
-			if (map._permission !== 'readonly') {
+			if (this._map._permission !== 'readonly') {
 				this._map.fire('postMessage', {msgId: 'UI_Save'});
 				if (!this._map._disableDefaultAction['UI_Save']) {
 					this._map.save(true, true);


More information about the Libreoffice-commits mailing list