summaryrefslogtreecommitdiff
path: root/sc/source/ui/drawfunc/fuins1.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/drawfunc/fuins1.cxx')
-rw-r--r--sc/source/ui/drawfunc/fuins1.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/drawfunc/fuins1.cxx b/sc/source/ui/drawfunc/fuins1.cxx
index 9b1c8d01392a..4ae82e783ae7 100644
--- a/sc/source/ui/drawfunc/fuins1.cxx
+++ b/sc/source/ui/drawfunc/fuins1.cxx
@@ -127,8 +127,8 @@ static void lcl_InsertGraphic( const Graphic& rGraphic,
// at 100% view scale (as in SetMarkedOriginalSize),
// instead of respecting the current view scale
MapMode aSourceMap = rGraphic.GetPrefMapMode();
- MapMode aDestMap( MAP_100TH_MM );
- if ( aSourceMap.GetMapUnit() == MAP_PIXEL && pDrawView )
+ MapMode aDestMap( MapUnit::Map100thMM );
+ if ( aSourceMap.GetMapUnit() == MapUnit::MapPixel && pDrawView )
{
Fraction aScaleX, aScaleY;
pDrawView->CalcNormScale( aScaleX, aScaleY );
@@ -186,9 +186,9 @@ static void lcl_InsertMedia( const OUString& rMediaURL, bool bApi,
if( rPrefSize.Width() && rPrefSize.Height() )
{
if( pWindow )
- aSize = pWindow->PixelToLogic( rPrefSize, MAP_100TH_MM );
+ aSize = pWindow->PixelToLogic( rPrefSize, MapUnit::Map100thMM );
else
- aSize = Application::GetDefaultDevice()->PixelToLogic( rPrefSize, MAP_100TH_MM );
+ aSize = Application::GetDefaultDevice()->PixelToLogic( rPrefSize, MapUnit::Map100thMM );
}
else
aSize = Size( 5000, 5000 );