diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-22 23:40:24 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-11-23 10:10:09 +0000 |
commit | b7ea36101497c275cb08b0e37facbde656197d9b (patch) | |
tree | a05e25d4f01c94c69712d17a1ab4cdbc925ef355 /starmath/source/mathmlimport.cxx | |
parent | 62d880f3228c7f5c3f8a1d30f5a5c9ed390a1eb5 (diff) |
add stripStart, can replace EraseTrailingChars
Diffstat (limited to 'starmath/source/mathmlimport.cxx')
-rw-r--r-- | starmath/source/mathmlimport.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx index 6ab4cbf79e82..b3bb953be6e2 100644 --- a/starmath/source/mathmlimport.cxx +++ b/starmath/source/mathmlimport.cxx @@ -49,6 +49,10 @@ one go*/ #include <com/sun/star/embed/ElementModes.hpp> #include <com/sun/star/uno/Any.h> +#include <comphelper/genericpropertyset.hxx> +#include <comphelper/processfactory.hxx> +#include <comphelper/servicehelper.hxx> +#include <comphelper/string.hxx> #include <rtl/math.hxx> #include <sfx2/frame.hxx> #include <sfx2/docfile.hxx> @@ -58,7 +62,6 @@ one go*/ #include <unotools/saveopt.hxx> #include <svl/stritem.hxx> #include <svl/itemprop.hxx> -#include <comphelper/processfactory.hxx> #include <unotools/streamwrap.hxx> #include <sax/tools/converter.hxx> #include <xmloff/xmlnmspe.hxx> @@ -68,8 +71,6 @@ one go*/ #include <xmloff/xmluconv.hxx> #include <xmloff/xmlmetai.hxx> #include <osl/mutex.hxx> -#include <comphelper/genericpropertyset.hxx> -#include <comphelper/servicehelper.hxx> #include <memory> @@ -572,7 +573,7 @@ void SmXMLImport::endDocument(void) //Make up some editable text aText = pDocShell->GetText(); pTree->CreateTextFromNode(aText); - aText.EraseTrailingChars(); + aText = comphelper::string::stripEnd(aText, ' '); if ((aText.GetChar(0) == '{') && (aText.GetChar(aText.Len()-1) == '}')) { |