[Libreoffice-commits] online.git: loleaflet/src
Szymon Kłos (via logerrit)
logerrit at kemper.freedesktop.org
Wed Nov 27 09:24:12 UTC 2019
loleaflet/src/control/Control.Toolbar.js | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit a3390be9f462d52c6573f730655a62b854ffde4b
Author: Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Fri Nov 22 15:26:50 2019 +0100
Commit: Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Wed Nov 27 10:23:52 2019 +0100
jsdialogs: avoid using undefine
Change-Id: Icb27e7f0c3ffda9a76b578b97d1b8f4395998424
Reviewed-on: https://gerrit.libreoffice.org/83860
Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>
Tested-by: Szymon Kłos <szymon.klos at collabora.com>
diff --git a/loleaflet/src/control/Control.Toolbar.js b/loleaflet/src/control/Control.Toolbar.js
index 52bdd4c1a..d1cc42604 100644
--- a/loleaflet/src/control/Control.Toolbar.js
+++ b/loleaflet/src/control/Control.Toolbar.js
@@ -1659,6 +1659,9 @@ function onCommandStateChanged(e) {
var found = false;
var value, color, div;
+ if (!commandName)
+ return;
+
if (commandName === '.uno:AssignLayout') {
$('.styles-select').val(state).trigger('change');
} else if (commandName === '.uno:StyleApply') {
More information about the Libreoffice-commits
mailing list