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:
committed by
Thorsten Behrens
parent
7fd222927b
commit
d7ab839b8e
@@ -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,
|
||||
|
Reference in New Issue
Block a user