diff options
author | Malte Timmermann <mt@openoffice.org> | 2001-03-07 17:25:16 +0000 |
---|---|---|
committer | Malte Timmermann <mt@openoffice.org> | 2001-03-07 17:25:16 +0000 |
commit | 88eb5af7b1302965b75ce33e6cd3f485a84eaca5 (patch) | |
tree | bcd10caa48df2f8665dd17d191cf6d74c493f80c /svx/source/editeng/editobj.cxx | |
parent | Changed RTF Export a little bit... (diff) | |
download | core-88eb5af7b1302965b75ce33e6cd3f485a84eaca5.tar.gz core-88eb5af7b1302965b75ce33e6cd3f485a84eaca5.zip |
Fixed bug storing UnicodeStrings
Diffstat (limited to 'svx/source/editeng/editobj.cxx')
-rw-r--r-- | svx/source/editeng/editobj.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/editeng/editobj.cxx b/svx/source/editeng/editobj.cxx index 3d074b767a43..d0b0b0b94f95 100644 --- a/svx/source/editeng/editobj.cxx +++ b/svx/source/editeng/editobj.cxx @@ -2,9 +2,9 @@ * * $RCSfile: editobj.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: mt $ $Date: 2001-03-02 16:31:50 $ + * last change: $Author: mt $ $Date: 2001-03-07 18:25:16 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1157,8 +1157,8 @@ void __EXPORT BinTextObject::StoreData( SvStream& rOStream ) const for ( USHORT nPara = 0; nPara < nParagraphs; nPara++ ) { ContentInfo* pC = GetContents().GetObject( nPara ); - USHORT nL = pC->GetText().Len(); - rOStream.WriteNumber( nL ); + ULONG nL = pC->GetText().Len(); + rOStream << nL; rOStream.Write( pC->GetText().GetBuffer(), nL*sizeof(sal_Unicode) ); } } @@ -1296,8 +1296,8 @@ void __EXPORT BinTextObject::CreateData( SvStream& rIStream ) for ( USHORT nPara = 0; nPara < nParagraphs; nPara++ ) { ContentInfo* pC = GetContents().GetObject( nPara ); - USHORT nL; - rIStream.ReadNumber( nL ); + ULONG nL; + rIStream >> nL; pC->GetText().AllocBuffer( nL ); rIStream.Read( pC->GetText().GetBufferAccess(), nL*sizeof(sal_Unicode) ); pC->GetText().ReleaseBufferAccess( nL ); |