diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-14 09:40:50 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-14 10:53:28 +0000 |
commit | eded6f196058a1557a5cae62733a5aa67077ce10 (patch) | |
tree | 74f036d2ddecbb744a00de4b259f6dd4f9516743 /filter | |
parent | a932e780600e9cbd1d6e31348889e9350ccd3cf0 (diff) |
longparas: expand STRING_LEN to text length locally
Change-Id: I9ffdabdc44677033d8c8ac1b025ccb7c600db664
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/msfilter/msdffimp.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx index 2e9e5f42917a..1d3e30e74f92 100644 --- a/filter/source/msfilter/msdffimp.cxx +++ b/filter/source/msfilter/msdffimp.cxx @@ -24,7 +24,6 @@ #include <vector> #include <osl/endian.h> #include <tools/solar.h> -#include <tools/string.hxx> #include <rtl/math.hxx> #include <comphelper/classids.hxx> @@ -4353,7 +4352,8 @@ SdrObject* SvxMSDffManager::ImportShape( const DffRecordHeader& rHd, SvStream& r sal_Bool bCreateNewParaObject = sal_False; for ( i = 0; i < nParagraphs; i++ ) { - sal_Bool bIsRTL = aVirDev.GetTextIsRTL( rOutliner.GetText( rOutliner.GetParagraph( i ) ), 0, STRING_LEN ); + OUString aString(rOutliner.GetText(rOutliner.GetParagraph(i))); + bool bIsRTL = aVirDev.GetTextIsRTL(aString, 0, aString.getLength()); if ( bIsRTL ) { SfxItemSet aSet2( rOutliner.GetParaAttribs( i ) ); |