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

New commits:
commit be4800531d0a3e184d4683992f382d08837ffec0
Author:     Pranam Lashkari <lpra...@collabora.com>
AuthorDate: Thu Jan 23 05:17:53 2020 +0530
Commit:     Jan Holesovsky <ke...@collabora.com>
CommitDate: Tue Jan 28 12:20:52 2020 +0100

    Fixed broken image linking in mobile wizard
    
    after new callback function route for the mobile wizard,
     noneexisting images were being added to menu
    
    Change-Id: Iec3f817cc218d7a4cb9b92370f092fdf6dc18d70
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87228
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Jan Holesovsky <ke...@collabora.com>

diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js 
b/loleaflet/src/control/Control.JSDialogBuilder.js
index 3660dc2fa..71c074103 100644
--- a/loleaflet/src/control/Control.JSDialogBuilder.js
+++ b/loleaflet/src/control/Control.JSDialogBuilder.js
@@ -1422,7 +1422,7 @@ L.Control.JSDialogBuilder = L.Control.extend({
                var menuEntry = L.DomUtil.create('div', 'ui-header level-' + 
builder._currentDepth + ' mobile-wizard ui-widget', parentContainer);
 
                var icon = null;
-               var commandName = data.command ? 
data.command.substring('.uno:'.length) : data.id;
+               var commandName = data.command && data.command.substring(0, 
'.uno:'.length) === '.uno:' ? data.command.substring('.uno:'.length) : data.id;
                if (commandName && commandName.length && 
L.LOUtil.existsIconForCommand(commandName)) {
                        var iconSpan = L.DomUtil.create('span', 
'menu-entry-icon ' + commandName.toLowerCase(), menuEntry);
                        var iconPath = 'images/lc_' + commandName.toLowerCase() 
+ '.svg';
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to