loleaflet/src/control/Control.Toolbar.js | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit a3390be9f462d52c6573f730655a62b854ffde4b Author: Szymon Kłos <szymon.k...@collabora.com> AuthorDate: Fri Nov 22 15:26:50 2019 +0100 Commit: Szymon Kłos <szymon.k...@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.k...@collabora.com> Tested-by: Szymon Kłos <szymon.k...@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') { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits