diff options
Diffstat (limited to 'svx/source/dialog/swframeexample.cxx')
-rw-r--r-- | svx/source/dialog/swframeexample.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/dialog/swframeexample.cxx b/svx/source/dialog/swframeexample.cxx index 25d4d226410f..19539641bbc7 100644 --- a/svx/source/dialog/swframeexample.cxx +++ b/svx/source/dialog/swframeexample.cxx @@ -67,7 +67,7 @@ VCL_BUILDER_FACTORY_ARGS(SvxSwFrameExample, 0) Size SvxSwFrameExample::GetOptimalSize() const { - return LogicToPixel(Size(52, 86), MapMode(MAP_APPFONT)); + return LogicToPixel(Size(52, 86), MapMode(MapUnit::MapAppFont)); } void SvxSwFrameExample::InitColors_Impl() @@ -474,7 +474,7 @@ Rectangle SvxSwFrameExample::DrawInnerFrame_Impl(vcl::RenderContext& rRenderCont void SvxSwFrameExample::Paint(vcl::RenderContext& rRenderContext, const Rectangle&) { - rRenderContext.SetMapMode(MAP_PIXEL); + rRenderContext.SetMapMode(MapUnit::MapPixel); InitAllRects_Impl(rRenderContext); |