summaryrefslogtreecommitdiff
path: root/sw/source/core/txtnode/fntcache.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2013-01-28 11:56:10 +0100
committerMiklos Vajna <vmiklos@suse.cz>2013-01-28 13:49:41 +0100
commita1bef744a24b072adc22035b5b15b376961351d8 (patch)
tree9bb035b3db18f8d85769469a7621bce710628f8c /sw/source/core/txtnode/fntcache.cxx
parent06de72bea24a83e4a4efbc235853a40781bce168 (diff)
SwXTextFrame: use XFillGradientItem instead of extending SvxBrushItem
Change-Id: I8863cbe1d01fceac0f4b4152264c1464c90e02b8
Diffstat (limited to 'sw/source/core/txtnode/fntcache.cxx')
-rw-r--r--sw/source/core/txtnode/fntcache.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/txtnode/fntcache.cxx b/sw/source/core/txtnode/fntcache.cxx
index 030e3efa4278..21408f80d180 100644
--- a/sw/source/core/txtnode/fntcache.cxx
+++ b/sw/source/core/txtnode/fntcache.cxx
@@ -2540,6 +2540,7 @@ sal_Bool SwDrawTextInfo::ApplyAutoColor( Font* pFont )
{
const SvxBrushItem* pItem;
const XFillStyleItem* pFillStyleItem;
+ const XFillGradientItem* pFillGradientItem;
SwRect aOrigBackRect;
/// OD 21.08.2002
@@ -2548,7 +2549,7 @@ sal_Bool SwDrawTextInfo::ApplyAutoColor( Font* pFont )
/// OD 21.08.2002 #99657#
/// There is a user defined setting for the background, if there
/// is a background brush and its color is *not* "no fill"/"auto fill".
- if( GetFrm()->GetBackgroundBrush( pItem, pFillStyleItem, pCol, aOrigBackRect, sal_False ) )
+ if( GetFrm()->GetBackgroundBrush( pItem, pFillStyleItem, pFillGradientItem, pCol, aOrigBackRect, sal_False ) )
{
if ( !pCol )
{