summaryrefslogtreecommitdiff
path: root/starmath/source
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-09-04 22:40:08 +0200
committerThomas Arnhold <thomas@arnhold.org>2013-09-05 12:42:31 +0000
commit8c1d8ab99ca593189b25e6d8e56ed65c2482b09d (patch)
treee9acb7454c1c7c2c59697465a484b8da8b34e10c /starmath/source
parentce565ff09743c52a08dffc28b9639d657d56bee2 (diff)
fdo#68956: fix string conversion
Added the SetText method to make it absolutely clear. Regression from 150c9f8bbcffacc687a5603e2a589d2a3816dccb Change-Id: I4e9935fd13fca8f9cfdfda65c980d08b1e85b459 Reviewed-on: https://gerrit.libreoffice.org/5819 Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com> Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
Diffstat (limited to 'starmath/source')
-rw-r--r--starmath/source/mathmlimport.cxx2
-rw-r--r--starmath/source/mathmlimport.hxx5
2 files changed, 4 insertions, 3 deletions
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx
index c10bf978a184..59aadeeff12b 100644
--- a/starmath/source/mathmlimport.cxx
+++ b/starmath/source/mathmlimport.cxx
@@ -1192,7 +1192,7 @@ void SmXMLAnnotationContext_Impl::StartElement(const uno::Reference<
void SmXMLAnnotationContext_Impl::Characters(const OUString &rChars)
{
if (bIsStarMath)
- GetSmImport().GetText() + rChars;
+ GetSmImport().SetText( GetSmImport().GetText() + rChars );
}
////////////////////////////////////////////////////////////
diff --git a/starmath/source/mathmlimport.hxx b/starmath/source/mathmlimport.hxx
index 17b0260e18de..d730395e818b 100644
--- a/starmath/source/mathmlimport.hxx
+++ b/starmath/source/mathmlimport.hxx
@@ -255,8 +255,9 @@ public:
return result;
}
- sal_Bool GetSuccess() { return bSuccess; }
- OUString &GetText() { return aText; }
+ sal_Bool GetSuccess() { return bSuccess; }
+ OUString GetText() { return aText; }
+ void SetText(const OUString &rStr) { aText = rStr; }
virtual void SetViewSettings(const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& aViewProps);
virtual void SetConfigurationSettings(const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& aViewProps);