[Libreoffice-commits] online.git: loleaflet/src
Szymon Kłos (via logerrit)
logerrit at kemper.freedesktop.org
Wed Oct 9 14:56:27 UTC 2019
loleaflet/src/control/Control.JSDialogBuilder.js | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit f3b546d24b600a17257f0a2340d19f80c174ec67
Author: Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Wed Oct 9 16:55:55 2019 +0200
Commit: Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Wed Oct 9 16:56:05 2019 +0200
jsdialogs: avoid operation on undefined
Change-Id: Iba7a0d0d7e7ba335e04503284c0affd0e0a35cb0
diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js b/loleaflet/src/control/Control.JSDialogBuilder.js
index fe5891cd6..fc5dc52b8 100644
--- a/loleaflet/src/control/Control.JSDialogBuilder.js
+++ b/loleaflet/src/control/Control.JSDialogBuilder.js
@@ -426,6 +426,9 @@ L.Control.JSDialogBuilder = L.Control.extend({
},
_createIconPath: function(name) {
+ if (!name)
+ return '';
+
var cleanName = name;
var prefixLength = '.uno:'.length;
if (name.substr(0, prefixLength) == '.uno:')
More information about the Libreoffice-commits
mailing list