loleaflet/dist/toolbar/toolbar.js |   19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

New commits:
commit 289a490300145156ffb9e152c158f2d2ce7736dd
Author:     Andras Timar <andras.ti...@collabora.com>
AuthorDate: Mon Aug 6 17:43:59 2018 +0200
Commit:     Jan Holesovsky <ke...@collabora.com>
CommitDate: Thu Aug 16 20:59:20 2018 +0200

    loleaflet: fix Calc status bar functions
    
    Change-Id: I11eced357e000bafa6f49f605d0766cc4df49720
    Reviewed-on: https://gerrit.libreoffice.org/58653
    Reviewed-by: Jan Holesovsky <ke...@collabora.com>
    Tested-by: Jan Holesovsky <ke...@collabora.com>

diff --git a/loleaflet/dist/toolbar/toolbar.js 
b/loleaflet/dist/toolbar/toolbar.js
index c6925cfe3..2b921bd2d 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -70,16 +70,6 @@ function onClick(e, id, item, subItem) {
                toolbar = w2ui['presentation-toolbar'];
                item = toolbar.get(id);
        }
-       else if (item && subItem)
-       {
-               var command = {
-                       'StatusBarFunc': {
-                               type: 'unsigned short',
-                               value: subItem.func
-                       }
-               };
-               map.sendUnoCommand('.uno:StatusBarFunc', command);
-       }
        else {
                throw new Error('unknown id: ' + id);
        }
@@ -203,6 +193,15 @@ function onClick(e, id, item, subItem) {
                w2ui['formulabar'].hide('acceptformula', 'cancelformula');
                w2ui['formulabar'].show('sum', 'function');
        }
+       else if (id.startsWith('StateTableCellMenu') && subItem) {
+               var command = {
+                       'StatusBarFunc': {
+                               type: 'unsigned short',
+                               value: subItem.func
+                       }
+               };
+               map.sendUnoCommand('.uno:StatusBarFunc', command);
+       }
 }
 
 function setBorders(left, right, bottom, top, horiz, vert) {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to