loleaflet/dist/toolbar/toolbar.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1a918d878104950032e3727b1fe9329ca841c914
Author: Pranav Kant <pran...@collabora.com>
Date:   Fri May 13 16:42:39 2016 +0530

    loleaflet: Fix incorrect variable access
    
    Change-Id: I11981c002808257d39aea70a632039a40839397b

diff --git a/loleaflet/dist/toolbar/toolbar.js 
b/loleaflet/dist/toolbar/toolbar.js
index 72382c0..14756d2 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -708,7 +708,7 @@ map.on('commandstatechanged', function (e) {
                        else if (state === 'false') {
                                toolbar.uncheck(id);
                        }
-                       else if (state === 'enabled' && 
map._docLayer._permission === 'edit') {
+                       else if (state === 'enabled' && map._permission === 
'edit') {
                                toolbar.enable(id);
                        }
                        else if (state === 'disabled') {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to