diff options
Diffstat (limited to 'sd/source/ui/slidesorter/view/SlsFontProvider.cxx')
-rw-r--r-- | sd/source/ui/slidesorter/view/SlsFontProvider.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/slidesorter/view/SlsFontProvider.cxx b/sd/source/ui/slidesorter/view/SlsFontProvider.cxx index de4a42483a37..faaad4c3baed 100644 --- a/sd/source/ui/slidesorter/view/SlsFontProvider.cxx +++ b/sd/source/ui/slidesorter/view/SlsFontProvider.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -114,11 +114,11 @@ FontProvider::SharedFontPointer FontProvider::GetFont (const OutputDevice& rDevi maFont.reset(new Font (Application::GetSettings().GetStyleSettings().GetAppFont())); maFont->SetTransparent(TRUE); maFont->SetWeight(WEIGHT_NORMAL); - + // Transform the point size to pixel size. MapMode aFontMapMode (MAP_POINT); Size aFontSize (rDevice.LogicToPixel(maFont->GetSize(), aFontMapMode)); - + // Transform the font size to the logical coordinates of the device. maFont->SetSize (rDevice.PixelToLogic(aFontSize)); @@ -126,7 +126,7 @@ FontProvider::SharedFontPointer FontProvider::GetFont (const OutputDevice& rDevi // devices or modified zoom scales on future calls. maMapMode = rDevice.GetMapMode(); } - + return maFont; } |