From d7ab839b8e257e48639212b44943ae3556d28d46 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Tue, 26 Oct 2010 22:19:52 +0200 Subject: 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) --- cppcanvas/source/mtfrenderer/implrenderer.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cppcanvas') 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(pCurrAct)->GetHorzRound(), - static_cast(pCurrAct)->GetVertRound() )); + ( (double) static_cast(pCurrAct)->GetHorzRound() ) / rRect.GetWidth(), + ( (double) static_cast(pCurrAct)->GetVertRound() ) / rRect.GetHeight() ) ); aPoly.transform( getState( rStates ).mapModeTransform ); createFillAndStroke( aPoly, -- cgit v1.2.3