summaryrefslogtreecommitdiff
path: root/cui/source/tabpages/page.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/tabpages/page.cxx')
-rw-r--r--cui/source/tabpages/page.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/tabpages/page.cxx b/cui/source/tabpages/page.cxx
index 90612b428267..4e895fa09ff7 100644
--- a/cui/source/tabpages/page.cxx
+++ b/cui/source/tabpages/page.cxx
@@ -264,7 +264,7 @@ SvxPageDescPage::SvxPageDescPage( vcl::Window* pParent, const SfxItemSet& rAttr
}
MapMode aOldMode = mpDefPrinter->GetMapMode();
- mpDefPrinter->SetMapMode( MapUnit::MapTwip );
+ mpDefPrinter->SetMapMode(MapMode(MapUnit::MapTwip));
// set first- and last-values for the margins
Size aPaperSize = mpDefPrinter->GetPaperSize();
@@ -509,7 +509,7 @@ void SvxPageDescPage::Reset( const SfxItemSet* rSet )
m_pBspWin->SetSize( Size( ConvertLong_Impl( aPaperSize.Width(), eUnit ),
ConvertLong_Impl( aPaperSize.Height(), eUnit ) ) );
- aPaperSize = OutputDevice::LogicToLogic(aPaperSize, eUnit, MapUnit::Map100thMM);
+ aPaperSize = OutputDevice::LogicToLogic(aPaperSize, MapMode(eUnit), MapMode(MapUnit::Map100thMM));
if ( bLandscape )
Swap( aPaperSize );
@@ -1039,7 +1039,7 @@ void SvxPageDescPage::SwapFirstValues_Impl( bool bSet )
eOri = Orientation::Landscape;
Orientation eOldOri = mpDefPrinter->GetOrientation();
mpDefPrinter->SetOrientation( eOri );
- mpDefPrinter->SetMapMode( MapUnit::MapTwip );
+ mpDefPrinter->SetMapMode(MapMode(MapUnit::MapTwip));
// set first- and last-values for margins
Size aPaperSize = mpDefPrinter->GetPaperSize();