[Libreoffice-commits] online.git: Branch 'distro/collabora/co-4-2' - loleaflet/src
Szymon KÅos (via logerrit)
logerrit at kemper.freedesktop.org
Fri Aug 14 11:53:41 UTC 2020
loleaflet/src/layer/marker/Annotation.js | 1 +
1 file changed, 1 insertion(+)
New commits:
commit c0851b0c46676be86017bc3f14f6b212d999421e
Author: Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Thu Aug 13 09:41:05 2020 +0200
Commit: Jan Holesovsky <kendy at collabora.com>
CommitDate: Fri Aug 14 13:53:17 2020 +0200
When avatar fails to load use generic image
Change-Id: I03659a75ed168b15483ef46677eae4989b734933
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100643
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
diff --git a/loleaflet/src/layer/marker/Annotation.js b/loleaflet/src/layer/marker/Annotation.js
index 05c9b59a2..2d1986ef6 100644
--- a/loleaflet/src/layer/marker/Annotation.js
+++ b/loleaflet/src/layer/marker/Annotation.js
@@ -207,6 +207,7 @@ L.Annotation = L.Layer.extend({
imgAuthor.setAttribute('src', L.LOUtil.getImageURL('user.svg'));
imgAuthor.setAttribute('width', this.options.imgSize.x);
imgAuthor.setAttribute('height', this.options.imgSize.y);
+ imgAuthor.onerror = function () { imgAuthor.setAttribute('src', L.LOUtil.getImageURL('user.svg')); };
this._authorAvatarImg = imgAuthor;
this._authorAvatartdImg = tdImg;
this._contentAuthor = L.DomUtil.create(tagDiv, 'loleaflet-annotation-content-author', tdAuthor);
More information about the Libreoffice-commits
mailing list