summaryrefslogtreecommitdiffstats
path: root/binfilter/bf_svtools/source/filter.vcl/wmf/svt_enhwmf.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'binfilter/bf_svtools/source/filter.vcl/wmf/svt_enhwmf.cxx')
-rw-r--r--binfilter/bf_svtools/source/filter.vcl/wmf/svt_enhwmf.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/binfilter/bf_svtools/source/filter.vcl/wmf/svt_enhwmf.cxx b/binfilter/bf_svtools/source/filter.vcl/wmf/svt_enhwmf.cxx
index e40076669..cf13a6a04 100644
--- a/binfilter/bf_svtools/source/filter.vcl/wmf/svt_enhwmf.cxx
+++ b/binfilter/bf_svtools/source/filter.vcl/wmf/svt_enhwmf.cxx
@@ -979,9 +979,10 @@ BOOL EnhWMFReader::ReadEnhWMF()
pDX = new sal_Int32[ aText.Len() ];
for ( i = 0, j = 0; i < aText.Len(); i++ )
{
- ByteString aCharacter( aText.GetChar( i ), pOut->GetCharSet() );
+ sal_Unicode cUniChar = aText.GetChar(i);
+ rtl::OString aCharacter(&cUniChar, 1, pOut->GetCharSet());
pDX[ i ] = 0;
- for ( k = 0; ( k < aCharacter.Len() ) && ( j < nLen ) && ( i < aText.Len() ); k++ )
+ for ( k = 0; ( k < aCharacter.getLength() ) && ( j < nLen ) && ( i < aText.Len() ); k++ )
pDX[ i ] += pOldDx[ j++ ];
}
delete[] pOldDx;