diff options
author | Thorsten Behrens <tbehrens@suse.com> | 2011-11-21 16:33:07 +0100 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2011-11-21 16:37:20 +0100 |
commit | d4d79be21e16be9e77518cd223865bb2eb4f91ed (patch) | |
tree | 9dae88e0aaa83b17e5a21b6e2fa993e6de5d9658 /vcl | |
parent | 7ddc69623db91317edff6aaca44e5edd43804578 (diff) |
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).
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/gradient.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/gdi/gradient.cxx b/vcl/source/gdi/gradient.cxx index 38d8ba4567a2..ad18106c6aa8 100644 --- a/vcl/source/gdi/gradient.cxx +++ b/vcl/source/gdi/gradient.cxx @@ -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; } } |