loleaflet/src/control/Control.JSDialogBuilder.js |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 4c43a5622e75f17a6f86389dfdd6c76abbfb1853
Author:     Michael Meeks <michael.me...@collabora.com>
AuthorDate: Wed Jan 1 16:00:53 2020 +0000
Commit:     Michael Meeks <michael.me...@collabora.com>
CommitDate: Wed Jan 1 16:01:27 2020 +0000

    Avoid broken icons: provide an empty alt="" for mobile panel icons.
    
    Change-Id: I3cec930fdd16c5ad40970d939cceadde2245a822

diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js 
b/loleaflet/src/control/Control.JSDialogBuilder.js
index fa252cba8..b704ddfdf 100644
--- a/loleaflet/src/control/Control.JSDialogBuilder.js
+++ b/loleaflet/src/control/Control.JSDialogBuilder.js
@@ -245,6 +245,7 @@ L.Control.JSDialogBuilder = L.Control.extend({
                if (iconPath) {
                        var icon = L.DomUtil.create('img', 'menu-entry-icon', 
leftDiv);
                        icon.src = iconPath;
+                       icon.alt = '';
                        titleClass = 'menu-entry-with-icon'
                }
                var titleSpan = L.DomUtil.create('span', titleClass, leftDiv);
@@ -901,6 +902,7 @@ L.Control.JSDialogBuilder = L.Control.extend({
                        var image = L.DomUtil.create('img', 'spinfieldimage', 
div);
                        var icon = builder._createIconPath(data.id);
                        image.src = icon;
+                       icon.alt = '';
                }
 
                var spinfield = L.DomUtil.create('input', 'spinfield', div);
@@ -1421,6 +1423,7 @@ L.Control.JSDialogBuilder = L.Control.extend({
                        var iconPath = 'images/lc_' + commandName.toLowerCase() 
+ '.svg';
                        icon = L.DomUtil.create('img', '', iconSpan);
                        icon.src = iconPath;
+                       icon.alt = '';
                }
                if (data.checked && data.checked === true) {
                        L.DomUtil.addClass(menuEntry, 'menu-entry-checked');
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to