loleaflet/dist/toolbar/toolbar.js |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 27c2163e6d1a58be1fcf39b63c696d85a6a125c6
Author: Pranav Kant <pran...@collabora.co.uk>
Date:   Thu Jan 12 16:44:36 2017 +0530

    loleaflet: Move this logic to updateCommandValues()
    
    Change-Id: I64e96f87e56c1b14dd2085d552eebd40977cd7e9
    Reviewed-on: https://gerrit.libreoffice.org/35565
    Reviewed-by: Thorsten Behrens <thorsten.behr...@cib.de>
    Tested-by: Thorsten Behrens <thorsten.behr...@cib.de>

diff --git a/loleaflet/dist/toolbar/toolbar.js 
b/loleaflet/dist/toolbar/toolbar.js
index 5ffa88b9..b2ac4432 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -498,10 +498,6 @@ $(function () {
                        }
 
                        updateCommandValues();
-                       if (fontsSelectValue){
-                               
$('.fontsizes-select').val(fontsizesSelectValue);
-                               updateFontSizeList(fontsSelectValue);
-                       }
 
                        insertTable();
                }
@@ -1236,6 +1232,10 @@ function updateCommandValues() {
                });
 
                $('.fontsizes-select').on('select2:select', onFontSizeSelect);
+               if (fontsSelectValue) {
+                       updateFontSizeList(fontsSelectValue);
+               }
+               
$('.fontsizes-select').val(fontsizesSelectValue).trigger('change');
        }
 }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to