loleaflet/dist/framed.html |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit 0b728090f6a4efcbad887c6a079834179e65c8b0
Author: Tor Lillqvist <t...@collabora.com>
Date:   Mon Jan 22 11:26:23 2018 +0200

    Adapt to change to the Python GetNamedRanges()
    
    Receive and display also the range definitions.
    
    Change-Id: I69bd1bf2659fd382fb0f3307119eef5fffb7b6bd

diff --git a/loleaflet/dist/framed.html b/loleaflet/dist/framed.html
index 2a03acff9..5852bcfa6 100644
--- a/loleaflet/dist/framed.html
+++ b/loleaflet/dist/framed.html
@@ -121,7 +121,12 @@
             var index = 0;
             var result = '';
             while (msg.Values.result.value.hasOwnProperty(index.toString())) {
-              result += msg.Values.result.value[index.toString()].value + "\n";
+              if 
(msg.Values.result.value[index.toString()].value.hasOwnProperty('0') &&
+                  
msg.Values.result.value[index.toString()].value['0'].hasOwnProperty('value') &&
+                  
msg.Values.result.value[index.toString()].value.hasOwnProperty('1') &&
+                  
msg.Values.result.value[index.toString()].value['1'].hasOwnProperty('value'))
+              result += 
msg.Values.result.value[index.toString()].value[0].value + ": " +
+                        
msg.Values.result.value[index.toString()].value[1].value + "\n";
               index++;
             }
            document.forms['get-named-ranges-form'].elements['result'].value = 
result;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to