[Libreoffice-commits] online.git: Branch 'distro/collabora/co-4-2' - loleaflet/src

Pedro Pinto Silva (via logerrit) logerrit at kemper.freedesktop.org
Fri Sep 11 11:46:32 UTC 2020


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

New commits:
commit a201d0f5903032d02b5a3bfc034b278643307688
Author:     Pedro Pinto Silva <pedro.silva at collabora.com>
AuthorDate: Fri Sep 11 11:07:28 2020 +0200
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Fri Sep 11 13:46:14 2020 +0200

    Mobile: set icon for watermark transparency spinfield
    
    Reuse lc_settransparency icon used on objects instead of duplicating file
    
    Change-Id: Iec2393aa43edcf5907f3ae401811414cdb4682f3
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102421
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Andras Timar <andras.timar at collabora.com>

diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js b/loleaflet/src/control/Control.JSDialogBuilder.js
index 1422a71b6..87fe1060d 100644
--- a/loleaflet/src/control/Control.JSDialogBuilder.js
+++ b/loleaflet/src/control/Control.JSDialogBuilder.js
@@ -46,6 +46,8 @@ L.Control.JSDialogBuilder = L.Control.extend({
 				builder._fixedtextControl(parentContainer, fixedTextData, builder);
 			}
 
+			console.debug('baseSpinField: ' + data.id);
+
 			var div = L.DomUtil.create('div', 'spinfieldcontainer', parentContainer);
 			div.id = data.id;
 			controls['container'] = div;
@@ -53,7 +55,7 @@ L.Control.JSDialogBuilder = L.Control.extend({
 			var commandName = data.id ? data.id.substring('.uno:'.length) : data.id;
 			if (commandName && commandName.length && L.LOUtil.existsIconForCommand(commandName, builder.map.getDocType())) {
 				var image = L.DomUtil.create('img', 'spinfieldimage', div);
-				var icon = builder._createIconURL(data.id);
+				var icon = (data.id === 'Transparency') ? builder._createIconURL('settransparency') : builder._createIconURL(data.id);
 				image.src = icon;
 				icon.alt = '';
 			}


More information about the Libreoffice-commits mailing list