Revert "This is not needed anymore."

This reverts commit a184b2b812.

Change-Id: I5373831dc6e02de255d8c439ba99118873c07c28
Reviewed-on: https://gerrit.libreoffice.org/85225
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
This commit is contained in:
Tamás Zolnai 2019-12-16 15:03:26 +01:00
parent f76e4990ed
commit 4f7958dcc1

View file

@ -1415,7 +1415,7 @@ L.Control.JSDialogBuilder = L.Control.extend({
var icon = null;
var commandName = data.command ? data.command.substring('.uno:'.length) : data.id;
if (commandName && commandName.length) {
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';
icon = L.DomUtil.create('img', '', iconSpan);