merge the formfield patch from ooo-build
[ooovba.git] / applied_patches / 0536-cppcanvas-fix-roundcorners.diff
blobd29044eeb992847a9ace83bb8ad59c853233cc6a
1 diff -rup cppcanvas-orig-mp/source/mtfrenderer/implrenderer.cxx cppcanvas/source/mtfrenderer/implrenderer.cxx
2 --- cppcanvas-orig-mp/source/mtfrenderer/implrenderer.cxx 2008-06-03 12:26:31.000000000 +0200
3 +++ cppcanvas/source/mtfrenderer/implrenderer.cxx 2008-06-03 12:26:44.000000000 +0200
4 @@ -2039,8 +2040,8 @@ namespace cppcanvas
5 ::vcl::unotools::b2DPointFromPoint( rRect.TopLeft() ),
6 ::vcl::unotools::b2DPointFromPoint( rRect.BottomRight() ) +
7 ::basegfx::B2DPoint(1,1) ),
8 - static_cast<MetaRoundRectAction*>(pCurrAct)->GetHorzRound(),
9 - static_cast<MetaRoundRectAction*>(pCurrAct)->GetVertRound() ));
10 + ( (double) static_cast<MetaRoundRectAction*>(pCurrAct)->GetHorzRound() ) / rRect.GetWidth(),
11 + ( (double) static_cast<MetaRoundRectAction*>(pCurrAct)->GetVertRound() ) / rRect.GetHeight() ) );
12 aPoly.transform( getState( rStates ).mapModeTransform );
14 createFillAndStroke( aPoly,