[Libreoffice-commits] online.git: loleaflet/dist loleaflet/src
Henry Castro
hcastro at collabora.com
Sun May 29 21:18:19 UTC 2016
loleaflet/dist/toolbar/toolbar.js | 3 ++-
loleaflet/src/control/Styles.js | 6 +++++-
2 files changed, 7 insertions(+), 2 deletions(-)
New commits:
commit 2731e1fc0226f180a170860da26027028b655e2d
Author: Henry Castro <hcastro at collabora.com>
Date: Sun May 29 17:17:25 2016 -0400
loleaflet: bccu#1804 Style listbox does not get css styling
diff --git a/loleaflet/dist/toolbar/toolbar.js b/loleaflet/dist/toolbar/toolbar.js
index eeb79d9..e5f77a2 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -849,7 +849,8 @@ map.on('updatetoolbarcommandvalues', function (e) {
var outlineLevel = style.split('outline')[1];
localeStyle = 'Outline'.toLocaleString() + ' ' + outlineLevel;
} else {
- localeStyle = L.Styles.styleMappings[style].toLocaleString();
+ localeStyle = L.Styles.styleMappings[style];
+ localeStyle = localeStyle === undefined ? style.toLocaleString() : localeStyle.toLocaleString();
}
data = data.concat({id: style, text: localeStyle});
diff --git a/loleaflet/src/control/Styles.js b/loleaflet/src/control/Styles.js
index 609dd88..1dda56b 100644
--- a/loleaflet/src/control/Styles.js
+++ b/loleaflet/src/control/Styles.js
@@ -276,7 +276,11 @@ L.Styles = {
'List 2':'List 2',
'List 3':'List 3',
'List 4':'List 4',
- 'List 5':'List 5'
+ 'List 5':'List 5',
+ 'New Chapter':'New Chapter',
+ 'Guide Name':'Guide Name',
+ 'Heading Note':'Heading Note',
+ 'Text Note':'Text Note'
},
// For impress documents, LOK STATE_CHANGED callback return these internal names
More information about the Libreoffice-commits
mailing list