summaryrefslogtreecommitdiff
path: root/sw/source/ui/envelp/labfmt.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/envelp/labfmt.cxx')
-rw-r--r--sw/source/ui/envelp/labfmt.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/envelp/labfmt.cxx b/sw/source/ui/envelp/labfmt.cxx
index cc9b92391201..75ee218a6bc3 100644
--- a/sw/source/ui/envelp/labfmt.cxx
+++ b/sw/source/ui/envelp/labfmt.cxx
@@ -112,7 +112,7 @@ SwLabPreview::SwLabPreview(vcl::Window* pParent)
, m_aPWidthStr(SW_RESSTR(STR_PWIDTH))
, m_aPHeightStr(SW_RESSTR(STR_PHEIGHT))
{
- SetMapMode(MAP_PIXEL);
+ SetMapMode(MapUnit::MapPixel);
// FIXME RenderContext
@@ -139,7 +139,7 @@ SwLabPreview::SwLabPreview(vcl::Window* pParent)
Size SwLabPreview::GetOptimalSize() const
{
- return LogicToPixel(Size(146 , 161), MapMode(MAP_APPFONT));
+ return LogicToPixel(Size(146 , 161), MapMode(MapUnit::MapAppFont));
}
VCL_BUILDER_FACTORY(SwLabPreview)