summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Bregas <ab@openoffice.org>2001-08-07 10:20:11 +0000
committerAndreas Bregas <ab@openoffice.org>2001-08-07 10:20:11 +0000
commitea03cb56b31b53df2588711231b07355d83d91f9 (patch)
treef20f10b7123d87279434c63d4aee98cfbf1a2e91
parent74916b2d8a62d3ab3723e1ea42d7c842d5e7c972 (diff)
#90481# Use GetSOLoad/StoreTextEncoding()
-rw-r--r--basic/source/classes/image.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/basic/source/classes/image.cxx b/basic/source/classes/image.cxx
index b857afd4fe09..277207917a24 100644
--- a/basic/source/classes/image.cxx
+++ b/basic/source/classes/image.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: image.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 16:12:09 $
+ * last change: $Author: ab $ $Date: 2001-08-07 11:20:11 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -62,6 +62,7 @@
#ifndef _STREAM_HXX //autogen
#include <tools/stream.hxx>
#endif
+#include <tools/tenccvt.hxx>
#pragma hdrstop
#include <svtools/sbx.hxx>
#include "sb.hxx"
@@ -171,6 +172,7 @@ BOOL SbiImage::Load( SvStream& r )
r >> nVersion >> nCharSet >> lDimBase
>> nFlags >> nReserved1 >> nReserved2 >> nReserved3;
eCharSet = (CharSet) nCharSet;
+ eCharSet = GetSOLoadTextEncoding( eCharSet );
bBadVer = BOOL( nVersion != B_CURVERSION );
nDimBase = (USHORT) lDimBase;
}
@@ -256,6 +258,9 @@ BOOL SbiImage::Save( SvStream& r )
// Erst mal der Header:
ULONG nStart = SbiOpenRecord( r, B_MODULE, 1 );
ULONG nPos;
+
+ eCharSet = GetSOStoreTextEncoding( eCharSet );
+
r << (INT32) B_CURVERSION
<< (INT32) eCharSet
<< (INT32) nDimBase