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

New commits:
commit 57e225bb9b4c58228db8a75938f2f7024d700a0b
Author:     Tamás Zolnai <tamas.zol...@collabora.com>
AuthorDate: Tue Apr 21 16:45:47 2020 +0200
Commit:     Tamás Zolnai <tamas.zol...@collabora.com>
CommitDate: Tue Apr 21 19:35:46 2020 +0200

    mobile: fix 'enable property of undefined' error.
    
    Caught by cypress tests.
    We don't have 'presentation-toolbar' on mobile.
    
    Change-Id: I95440dbd505202183f936fc3e4f962c6a0199257
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92646
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Tamás Zolnai <tamas.zol...@collabora.com>

diff --git a/loleaflet/src/control/Control.Toolbar.js 
b/loleaflet/src/control/Control.Toolbar.js
index 0dc0264d6..a70d4d78e 100644
--- a/loleaflet/src/control/Control.Toolbar.js
+++ b/loleaflet/src/control/Control.Toolbar.js
@@ -922,7 +922,7 @@ function onCommandStateChanged(e) {
                if (window.mode.isMobile()) {
                        toolbarUp = statusbar;
                }
-               if (map.getDocType() === 'presentation' && (id === 'deletepage' 
|| id === 'insertpage' || id === 'duplicatepage')) {
+               else if (map.getDocType() === 'presentation' && (id === 
'deletepage' || id === 'insertpage' || id === 'duplicatepage')) {
                        toolbarUp = w2ui['presentation-toolbar'];
                }
                if (state === 'enabled') {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to