loleaflet/src/control/Control.Toolbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 311e93fb90cd9480368eeabf2e5adc264af30eed Author: Jan Holesovsky <ke...@collabora.com> AuthorDate: Mon Sep 23 13:06:52 2019 +0200 Commit: Andras Timar <andras.ti...@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.ti...@collabora.com> Tested-by: Andras Timar <andras.ti...@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) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits