loleaflet/dist/toolbar/toolbar.js |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 37266761c5d202ef173e49477b2a0e899e981127
Author: Pranav Kant <[email protected]>
Date:   Tue Nov 15 18:16:08 2016 +0530

    tdf#103641: Hide redundant break after save too
    
    ... if save button is hidden. This is not the case in master
    as we have additional element, Textwrap, there.
    
    Change-Id: I11c3f776d5e9691659ab4dbefdaebbf16c472631
    Reviewed-on: https://gerrit.libreoffice.org/34795
    Reviewed-by: Samuel Mehrbrodt <[email protected]>
    Tested-by: Samuel Mehrbrodt <[email protected]>

diff --git a/loleaflet/dist/toolbar/toolbar.js 
b/loleaflet/dist/toolbar/toolbar.js
index cb95fcf..0cd5573 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -333,7 +333,7 @@ $(function () {
                items: [
                        {type: 'html', id: 'left'},
                        {type: 'button',  id: 'save', img: 'save', hint: 
_('Save'), uno: 'Save'},
-                       {type: 'break'},
+                       {type: 'break', id: 'savebreak'},
                        {type: 'button',  id: 'undo',  img: 'undo', hint: 
_('Undo'), uno: 'Undo'},
                        {type: 'button',  id: 'redo',  img: 'redo', hint: 
_('Redo'), uno: 'Redo'},
                        {type: 'button',  id: 'repair', img: 'repair', hint: 
_('Document repair')},
@@ -726,6 +726,7 @@ function onFormulaBarBlur() {
 map.on('wopiprops', function(e) {
        if (e.HideSaveOption) {
                w2ui['toolbar-up'].hide('save');
+               w2ui['toolbar-up'].hide('savebreak');
        }
 });
 
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to