[Libreoffice-commits] online.git: loleaflet/src

Jan Holesovsky (via logerrit) logerrit at kemper.freedesktop.org
Thu Sep 26 07:46:21 UTC 2019


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

New commits:
commit 311e93fb90cd9480368eeabf2e5adc264af30eed
Author:     Jan Holesovsky <kendy at collabora.com>
AuthorDate: Mon Sep 23 13:06:52 2019 +0200
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Thu Sep 26 09:45:59 2019 +0200

    tdf#127663: Don't emit 'uno .uno:FontHeight ...' multiple times.
    
    Otherwise it will end up several times on the undo stack, and the user
    has to hit undo several times before undone.
    
    Change-Id: I089c9c9a521e1315b1f85b2866d04ee23a10d3b1
    Reviewed-on: https://gerrit.libreoffice.org/79401
    Reviewed-by: Andras Timar <andras.timar at collabora.com>
    Tested-by: Andras Timar <andras.timar at collabora.com>

diff --git a/loleaflet/src/control/Control.Toolbar.js b/loleaflet/src/control/Control.Toolbar.js
index 183adfbb9..4be262f31 100644
--- a/loleaflet/src/control/Control.Toolbar.js
+++ b/loleaflet/src/control/Control.Toolbar.js
@@ -1546,7 +1546,7 @@ function onDocLayerInit() {
 			return parseFloat(a.text) - parseFloat(b.text);
 		})}
 	});
-	$('.fontsizes-select').on('select2:select', onFontSizeSelect);
+	$('.fontsizes-select').off('select2:select', onFontSizeSelect).on('select2:select', onFontSizeSelect);
 }
 
 function onCommandStateChanged(e) {


More information about the Libreoffice-commits mailing list