summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2012-06-11 16:41:34 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-06-17 17:06:36 +0200
commit8806e00dbc14b55cff6072f0f6dcf90e0a11a079 (patch)
treee5fc0f2b640fab71fc38601830a1c0ae2636addf /reportdesign
parent70ed7beae7b21e391df0a246078c2103f8b3fe3a (diff)
Get rid of GRADIENT_* defines, they conflict with Windows GDI types.
Change-Id: Ia0bc37f81b7213b20fc5093beb46d7a05b1ac931 Signed-off-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/ui/report/EndMarker.cxx2
-rw-r--r--reportdesign/source/ui/report/StartMarker.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/reportdesign/source/ui/report/EndMarker.cxx b/reportdesign/source/ui/report/EndMarker.cxx
index 12f329c6f8a3..57ab90309fee 100644
--- a/reportdesign/source/ui/report/EndMarker.cxx
+++ b/reportdesign/source/ui/report/EndMarker.cxx
@@ -73,7 +73,7 @@ void OEndMarker::Paint( const Rectangle& /*rRect*/ )
aStartColor.RGBtoHSB(nHue, nSat, nBri);
nSat += 40;
Color aEndColor(Color::HSBtoRGB(nHue, nSat, nBri));
- Gradient aGradient(GRADIENT_LINEAR,aStartColor,aEndColor);
+ Gradient aGradient(GradientStyle_LINEAR,aStartColor,aEndColor);
aGradient.SetSteps(static_cast<sal_uInt16>(aSize.Height()));
DrawGradient(PixelToLogic(aPoly) ,aGradient);
diff --git a/reportdesign/source/ui/report/StartMarker.cxx b/reportdesign/source/ui/report/StartMarker.cxx
index 98f6e0b8342a..8a191bae5ca5 100644
--- a/reportdesign/source/ui/report/StartMarker.cxx
+++ b/reportdesign/source/ui/report/StartMarker.cxx
@@ -138,7 +138,7 @@ void OStartMarker::Paint( const Rectangle& rRect )
aStartColor.RGBtoHSB(nHue, nSat, nBri);
nSat += 40;
Color aEndColor(Color::HSBtoRGB(nHue, nSat, nBri));
- Gradient aGradient(GRADIENT_LINEAR,aStartColor,aEndColor);
+ Gradient aGradient(GradientStyle_LINEAR,aStartColor,aEndColor);
aGradient.SetSteps(static_cast<sal_uInt16>(aSize.Height()));
DrawGradient(PixelToLogic(aPoly) ,aGradient);