[Libreoffice-commits] online.git: loleaflet/src
Szymon Kłos (via logerrit)
logerrit at kemper.freedesktop.org
Mon Nov 4 13:40:29 UTC 2019
loleaflet/src/control/Control.JSDialogBuilder.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit de0e75d2fb5133f5da046c1183cf31ceb946187c
Author: Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Mon Nov 4 14:39:53 2019 +0100
Commit: Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Mon Nov 4 14:39:53 2019 +0100
jsdialogs: avoid uing selectedEntries when no selection
Change-Id: I9cf44c6a51c46fe6a7f897d092f6fc2986217080
diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js b/loleaflet/src/control/Control.JSDialogBuilder.js
index faf545240..82549d346 100644
--- a/loleaflet/src/control/Control.JSDialogBuilder.js
+++ b/loleaflet/src/control/Control.JSDialogBuilder.js
@@ -562,7 +562,7 @@ L.Control.JSDialogBuilder = L.Control.extend({
var entries = [];
for (var index in data.entries) {
var style = 'ui-combobox-text';
- if (index == data.selectedEntries[0]
+ if ((data.selectedEntries && index == data.selectedEntries[0])
|| data.entries[index] == title) {
style += ' selected';
}
More information about the Libreoffice-commits
mailing list