diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2019-05-29 14:16:33 +0000 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2019-05-29 20:15:14 +0200 |
commit | 65167c708afb475aa628b8289e78a48abdf37119 (patch) | |
tree | 201d9614a0a270979decf6882faf3da38cc0f795 /starmath/inc | |
parent | a7e52282e36987f4ca6bed968e87ada6849b10e8 (diff) |
SM disable localized characters on element parsing
The special character tokens are localized character names! This
means that at least in German the %mu wasn't replaced in the
example, as the parser expected %my. So tell the parser to expect
non-localized input. And share it for all the parsing.
Change-Id: I4c3c0f35eb61c37a2101b51b445e7cc888a1f429
Reviewed-on: https://gerrit.libreoffice.org/73172
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'starmath/inc')
-rw-r--r-- | starmath/inc/ElementsDockingWindow.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/starmath/inc/ElementsDockingWindow.hxx b/starmath/inc/ElementsDockingWindow.hxx index aaa992b97f77..fe86ebd422f6 100644 --- a/starmath/inc/ElementsDockingWindow.hxx +++ b/starmath/inc/ElementsDockingWindow.hxx @@ -31,6 +31,7 @@ class SmDocShell; class SmNode; +class SmParser; class SmElement { @@ -107,7 +108,7 @@ class SmElementsControl : public Control bool m_bFirstPaintAfterLayout; rtl::Reference<AccessibleSmElementsControl> m_xAccessible; - void addElement(const OUString& aElementVisual, const OUString& aElementSource, const OUString& aHelpText); + void addElement(SmParser &rParser, const OUString& aElementVisual, const OUString& aElementSource, const OUString& aHelpText); void addElements(const SmElementDescr aElementsArray[], sal_uInt16 size); SmElement* current() const; void setCurrentElement(sal_uInt16); |