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)
This commit is contained in:
Radek Doulik
2010-10-26 22:19:52 +02:00
committed by Thorsten Behrens
parent 7fd222927b
commit d7ab839b8e

View File

@@ -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,