summaryrefslogtreecommitdiff
path: root/tools/source/generic/color.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tools/source/generic/color.cxx')
-rw-r--r--tools/source/generic/color.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/source/generic/color.cxx b/tools/source/generic/color.cxx
index d1ae8023ed18..1bce440ec8b8 100644
--- a/tools/source/generic/color.cxx
+++ b/tools/source/generic/color.cxx
@@ -225,7 +225,7 @@ SvStream& Color::Read( SvStream& rIStm, bool bNewFormat )
SvStream& Color::Write( SvStream& rOStm, bool bNewFormat )
{
if ( bNewFormat )
- rOStm << mnColor;
+ rOStm.WriteUInt32( mnColor );
else
rOStm << *this;
@@ -312,10 +312,10 @@ SvStream& operator<<( SvStream& rOStream, const Color& rColor )
nGreen = (nGreen<<8) + nGreen;
nBlue = (nBlue<<8) + nBlue;
- rOStream << nColorName;
- rOStream << nRed;
- rOStream << nGreen;
- rOStream << nBlue;
+ rOStream.WriteUInt16( nColorName );
+ rOStream.WriteUInt16( nRed );
+ rOStream.WriteUInt16( nGreen );
+ rOStream.WriteUInt16( nBlue );
return rOStream;
}