| commit | 311e93fb90cd9480368eeabf2e5adc264af30eed | [log] |
|---|---|---|
| author | Jan Holesovsky <kendy@collabora.com> | Mon Sep 23 13:06:52 2019 +0200 |
| committer | Andras Timar <andras.timar@collabora.com> | Thu Sep 26 09:45:59 2019 +0200 |
| tree | 1ee66fe7c4c40ee2eed2bb48a3032813f43e4f04 | |
| parent | f38b1c34ac0698469f83ab0a1de50e6135e843e6 [diff] |
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@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
diff --git a/loleaflet/src/control/Control.Toolbar.js b/loleaflet/src/control/Control.Toolbar.js index 183adfb..4be262f 100644 --- a/loleaflet/src/control/Control.Toolbar.js +++ b/loleaflet/src/control/Control.Toolbar.js
@@ -1546,7 +1546,7 @@ 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) {