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

Mihai Varga mihai.varga at collabora.com
Wed Sep 16 02:05:50 PDT 2015


 loleaflet/src/control/Control.Fonts.js |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 7d43fbeaa5f3905a4b64063e0b836d84a4c862da
Author: Mihai Varga <mihai.varga at collabora.com>
Date:   Wed Sep 16 12:05:25 2015 +0300

    loleaflet: empty font size when selecting multiple font sizes

diff --git a/loleaflet/src/control/Control.Fonts.js b/loleaflet/src/control/Control.Fonts.js
index 2c6944e..96c0104 100644
--- a/loleaflet/src/control/Control.Fonts.js
+++ b/loleaflet/src/control/Control.Fonts.js
@@ -126,6 +126,9 @@ L.Control.Fonts = L.Control.extend({
 			this._fontSelect.value = e.state;
 		}
 		else if (e.commandName === '.uno:FontHeight') {
+			if (e.state === '0') {
+				e.state = '';
+			}
 			this._setFontSize(e.state);
 		}
 	}


More information about the Libreoffice-commits mailing list