diff options
Diffstat (limited to 'drawinglayer/source/primitive2d/textlayoutdevice.cxx')
-rw-r--r-- | drawinglayer/source/primitive2d/textlayoutdevice.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drawinglayer/source/primitive2d/textlayoutdevice.cxx b/drawinglayer/source/primitive2d/textlayoutdevice.cxx index 820f0f9dbe4c..bfc9140e8d7c 100644 --- a/drawinglayer/source/primitive2d/textlayoutdevice.cxx +++ b/drawinglayer/source/primitive2d/textlayoutdevice.cxx @@ -426,7 +426,7 @@ namespace drawinglayer // handle FontRotation (if defined) if(!basegfx::fTools::equalZero(fFontRotation)) { - sal_Int16 aRotate10th((sal_Int16)(fFontRotation * (-1800.0/F_PI))); + sal_Int16 aRotate10th(static_cast<sal_Int16>(fFontRotation * (-1800.0/F_PI))); aRetval.SetOrientation(aRotate10th % 3600); } @@ -481,7 +481,7 @@ namespace drawinglayer // means the scaling is in the direct relation of width to height if(rFont.GetFontSize().getWidth() > 0) { - o_rSize.setX((double)rFont.GetFontSize().getWidth()); + o_rSize.setX(static_cast<double>(rFont.GetFontSize().getWidth())); } #endif return aRetval; |