diff options
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/graphic/ndgrf.cxx | 3 | ||||
-rw-r--r-- | sw/source/core/layout/fly.cxx | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/core/graphic/ndgrf.cxx b/sw/source/core/graphic/ndgrf.cxx index 8db55a3887e7..9d447df9ba6d 100644 --- a/sw/source/core/graphic/ndgrf.cxx +++ b/sw/source/core/graphic/ndgrf.cxx @@ -788,8 +788,7 @@ GraphicAttr& SwGrfNode::GetGraphicAttr( GraphicAttr& rGA, rGA.SetInvert( rSet.GetInvertGrf().GetValue() ); const sal_uInt16 nTrans = rSet.GetTransparencyGrf().GetValue(); - rGA.SetAlpha( 255 - static_cast<sal_uInt8>(FRound( - std::min( nTrans, sal_uInt16(100) ) * 2.55 )) ); + rGA.SetAlpha(255 - basegfx::fround<sal_uInt8>(nTrans * 2.55)); return rGA; } diff --git a/sw/source/core/layout/fly.cxx b/sw/source/core/layout/fly.cxx index db50a42de053..f91283fccb87 100644 --- a/sw/source/core/layout/fly.cxx +++ b/sw/source/core/layout/fly.cxx @@ -3016,7 +3016,7 @@ bool SwFlyFrame::GetContour( tools::PolyPolygon& rContour, else aNewPoint = OutputDevice::LogicToLogic( rPoly[ i ], aGrfMap, aDispMap ); - rPoly[ i ] = Point( FRound( aNewPoint.getX() * fScaleX ), FRound( aNewPoint.getY() * fScaleY ) ); + rPoly[ i ] = Point( basegfx::fround<tools::Long>( aNewPoint.getX() * fScaleX ), basegfx::fround<tools::Long>( aNewPoint.getY() * fScaleY ) ); } } } |