loleaflet/src/control/Control.JSDialogBuilder.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit de0e75d2fb5133f5da046c1183cf31ceb946187c
Author:     Szymon Kłos <szymon.k...@collabora.com>
AuthorDate: Mon Nov 4 14:39:53 2019 +0100
Commit:     Szymon Kłos <szymon.k...@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';
                        }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to