Fix radial gradient offset

Seems this got broken with the Gradient::GetBoundRect() common code
extraction - actually return what was calculated (fixes part of
n#714787).
This commit is contained in:
Thorsten Behrens
2011-11-21 16:33:07 +01:00
parent 7ddc69623d
commit d4d79be21e

View File

@@ -276,7 +276,6 @@ void Gradient::GetBoundRect( const Rectangle& rRect, Rectangle& rBoundRect, Poin
}
else
{
if( GetStyle() == GRADIENT_SQUARE || GetStyle() == GRADIENT_RECT )
{
const double fAngle = nAngle * F_PI1800;
@@ -332,7 +331,7 @@ void Gradient::GetBoundRect( const Rectangle& rRect, Rectangle& rBoundRect, Poin
aRect.Top() = rCenter.Y() - ( aSize.Height() >> 1 );
aRect.SetSize( aSize );
rBoundRect = rRect;
rBoundRect = aRect;
}
}