vcl/source/gdi/hatch.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit a1cb80dc55a708733ea0822150718a7c8076f7ba
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Sun Mar 13 10:54:38 2022 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Sun Mar 13 14:24:41 2022 +0100

    Degree10 has underlying Int16 type
    
    Change-Id: I17c10f6c3a1d342302363df50e2104d4c7c78088
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131487
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/vcl/source/gdi/hatch.cxx b/vcl/source/gdi/hatch.cxx
index c7665f610a92..e097f2f36dd3 100644
--- a/vcl/source/gdi/hatch.cxx
+++ b/vcl/source/gdi/hatch.cxx
@@ -91,8 +91,8 @@ SvStream& ReadHatch( SvStream& rIStm, Hatch& rHatch )
     rIStm.ReadInt32(nTmp32);
     rHatch.mpImplHatch->mnDistance = nTmp32;
 
-    sal_uInt16 nTmpAngle(0);
-    rIStm.ReadUInt16(nTmpAngle);
+    sal_Int16 nTmpAngle(0);
+    rIStm.ReadInt16(nTmpAngle);
     rHatch.mpImplHatch->mnAngle = Degree10(nTmpAngle);
 
     return rIStm;
@@ -106,7 +106,7 @@ SvStream& WriteHatch( SvStream& rOStm, const Hatch& rHatch )
 
     tools::GenericTypeSerializer aSerializer(rOStm);
     aSerializer.writeColor(rHatch.mpImplHatch->maColor);
-    rOStm.WriteInt32( rHatch.mpImplHatch->mnDistance ).WriteUInt16( 
rHatch.mpImplHatch->mnAngle.get() );
+    rOStm.WriteInt32( rHatch.mpImplHatch->mnDistance ).WriteInt16( 
rHatch.mpImplHatch->mnAngle.get() );
 
     return rOStm;
 }

Reply via email to