summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/objembed.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-10-26 23:15:06 +0200
committerMichael Stahl <mstahl@redhat.com>2017-10-26 23:17:45 +0200
commit11d2f3d6e1b6c9baf43d8521293c53525108436d (patch)
treeffe35d5d47713a11c93c3bf11f588eeaf492fc16 /sfx2/source/doc/objembed.cxx
parent213f7c02d4f3ddbe2f52950575e2559c52d98ac2 (diff)
vcl: make MapMode constructor explicit
Insert constructor everywhere, except a couple places that apparently want to compare GetMapUnit(). Change-Id: I1910deb60562e5e949203435e827057f70a3f988
Diffstat (limited to 'sfx2/source/doc/objembed.cxx')
-rw-r--r--sfx2/source/doc/objembed.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/doc/objembed.cxx b/sfx2/source/doc/objembed.cxx
index 7c9763b1aa8b..e4164e63a010 100644
--- a/sfx2/source/doc/objembed.cxx
+++ b/sfx2/source/doc/objembed.cxx
@@ -99,7 +99,7 @@ tools::Rectangle SfxObjectShell::GetVisArea( sal_uInt16 nAspect ) const
{
tools::Rectangle aRect;
aRect.SetSize( OutputDevice::LogicToLogic( Size( 5000, 5000 ),
- MapUnit::Map100thMM, GetMapUnit() ) );
+ MapMode(MapUnit::Map100thMM), MapMode(GetMapUnit())));
return aRect;
}
return tools::Rectangle();
@@ -154,7 +154,7 @@ void SfxObjectShell::FillTransferableObjectDescriptor( TransferableObjectDescrip
FillClass( &rDesc.maClassName, &nClipFormat, &aAppName, &rDesc.maTypeName, &aShortName, SOFFICE_FILEFORMAT_CURRENT );
rDesc.mnViewAspect = ASPECT_CONTENT;
- rDesc.maSize = OutputDevice::LogicToLogic( GetVisArea().GetSize(), GetMapUnit(), MapUnit::Map100thMM );
+ rDesc.maSize = OutputDevice::LogicToLogic(GetVisArea().GetSize(), MapMode(GetMapUnit()), MapMode(MapUnit::Map100thMM));
rDesc.maDragStartPos = Point();
rDesc.maDisplayName.clear();
}