diff options
Diffstat (limited to 'dbaccess/source/ui/misc/RtfReader.cxx')
-rw-r--r-- | dbaccess/source/ui/misc/RtfReader.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/ui/misc/RtfReader.cxx b/dbaccess/source/ui/misc/RtfReader.cxx index 2ef4ccb86c36..4534c9528156 100644 --- a/dbaccess/source/ui/misc/RtfReader.cxx +++ b/dbaccess/source/ui/misc/RtfReader.cxx @@ -47,6 +47,7 @@ #include <connectivity/dbconversion.hxx> #include <connectivity/dbtools.hxx> #include <comphelper/extract.hxx> +#include <comphelper/string.hxx> #include <tools/color.hxx> #include "WExtendPages.hxx" #include "moduledbu.hxx" @@ -301,8 +302,7 @@ sal_Bool ORTFReader::CreateTable(int nToken) break; case RTF_CELL: { - aColumnName.EraseLeadingChars(); - aColumnName.EraseTrailingChars(); + aColumnName = comphelper::string::strip(aColumnName, ' '); if (!aColumnName.Len() || m_bAppendFirstLine ) aColumnName = String(ModuleRes(STR_COLUMN_NAME)); |