diff options
author | Radek Doulik <rodo@novell.com> | 2010-10-26 22:19:52 +0200 |
---|---|---|
committer | Thorsten Behrens <tbehrens@novell.com> | 2010-10-26 22:19:52 +0200 |
commit | d7ab839b8e257e48639212b44943ae3556d28d46 (patch) | |
tree | e4dcd78f187258353cf9b540052a6b1f2dc88778 /cppcanvas/source | |
parent | 7fd222927bed8bbd5b0fc006681f583fec66974d (diff) |
Fix round corner bug in canvas
* cppcanvas/source/mtfrenderer/implrenderer.cxx: fixed round
corners rectangle drawing (basegfx tools use portion of width and
height to specify the corners width and height)
Diffstat (limited to 'cppcanvas/source')
-rw-r--r-- | cppcanvas/source/mtfrenderer/implrenderer.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx index 8b4096fac2be..cef7e1eed16c 100644 --- a/cppcanvas/source/mtfrenderer/implrenderer.cxx +++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx @@ -2020,8 +2020,8 @@ namespace cppcanvas ::vcl::unotools::b2DPointFromPoint( rRect.TopLeft() ), ::vcl::unotools::b2DPointFromPoint( rRect.BottomRight() ) + ::basegfx::B2DPoint(1,1) ), - static_cast<MetaRoundRectAction*>(pCurrAct)->GetHorzRound(), - static_cast<MetaRoundRectAction*>(pCurrAct)->GetVertRound() )); + ( (double) static_cast<MetaRoundRectAction*>(pCurrAct)->GetHorzRound() ) / rRect.GetWidth(), + ( (double) static_cast<MetaRoundRectAction*>(pCurrAct)->GetVertRound() ) / rRect.GetHeight() ) ); aPoly.transform( getState( rStates ).mapModeTransform ); createFillAndStroke( aPoly, |