summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/impgraph.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/gdi/impgraph.cxx')
-rw-r--r--vcl/source/gdi/impgraph.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/gdi/impgraph.cxx b/vcl/source/gdi/impgraph.cxx
index 2a7dce6480fc..ce3b42c4f681 100644
--- a/vcl/source/gdi/impgraph.cxx
+++ b/vcl/source/gdi/impgraph.cxx
@@ -696,7 +696,7 @@ MapMode ImpGraphic::ImplGetPrefMapMode() const
if(maSvgData.get() && maEx.IsEmpty())
{
// svg not yet buffered in maEx, return default PrefMapMode
- aMapMode = MapMode(MAP_100TH_MM);
+ aMapMode = MapMode(MapUnit::Map100thMM);
}
else
{
@@ -1075,7 +1075,7 @@ bool ImpGraphic::ImplWriteEmbedded( SvStream& rOStm )
rOStm.WriteInt32( 0 );
rOStm.WriteInt32( aSize.Width() );
rOStm.WriteInt32( aSize.Height() );
- rOStm.WriteInt32( aMapMode.GetMapUnit() );
+ rOStm.WriteInt32( (sal_uInt16)aMapMode.GetMapUnit() );
rOStm.WriteInt32( aMapMode.GetScaleX().GetNumerator() );
rOStm.WriteInt32( aMapMode.GetScaleX().GetDenominator() );
rOStm.WriteInt32( aMapMode.GetScaleY().GetNumerator() );