summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/gradient.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2013-01-25 10:35:52 +0100
committerMiklos Vajna <vmiklos@suse.cz>2013-01-25 11:14:49 +0100
commit2448539161d105c2b629ba090c732647d2e99c6d (patch)
treed0eaf749f2512844f174437cf94b70ef0c6073c2 /vcl/source/gdi/gradient.cxx
parent0544946effdd464e8bfcb8cc64969a6e76a36096 (diff)
Gradient::operator==: amazing how nobody noticed this for 13 years
Two Gradient instances equal if all of their members equal, not any. Change-Id: I313c1b145005f295f47b27e7af7ec96d5ee6168f
Diffstat (limited to 'vcl/source/gdi/gradient.cxx')
-rw-r--r--vcl/source/gdi/gradient.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/vcl/source/gdi/gradient.cxx b/vcl/source/gdi/gradient.cxx
index ea8a6bcd60c3..72d5ffc0632f 100644
--- a/vcl/source/gdi/gradient.cxx
+++ b/vcl/source/gdi/gradient.cxx
@@ -339,15 +339,15 @@ sal_Bool Gradient::operator==( const Gradient& rGradient ) const
if ( mpImplGradient == rGradient.mpImplGradient )
return sal_True;
- if ( (mpImplGradient->meStyle == rGradient.mpImplGradient->meStyle) ||
- (mpImplGradient->mnAngle == rGradient.mpImplGradient->mnAngle) ||
- (mpImplGradient->mnBorder == rGradient.mpImplGradient->mnBorder) ||
- (mpImplGradient->mnOfsX == rGradient.mpImplGradient->mnOfsX) ||
- (mpImplGradient->mnOfsY == rGradient.mpImplGradient->mnOfsY) ||
- (mpImplGradient->mnStepCount == rGradient.mpImplGradient->mnStepCount) ||
- (mpImplGradient->mnIntensityStart == rGradient.mpImplGradient->mnIntensityStart) ||
- (mpImplGradient->mnIntensityEnd == rGradient.mpImplGradient->mnIntensityEnd) ||
- (mpImplGradient->maStartColor == rGradient.mpImplGradient->maStartColor) ||
+ if ( (mpImplGradient->meStyle == rGradient.mpImplGradient->meStyle) &&
+ (mpImplGradient->mnAngle == rGradient.mpImplGradient->mnAngle) &&
+ (mpImplGradient->mnBorder == rGradient.mpImplGradient->mnBorder) &&
+ (mpImplGradient->mnOfsX == rGradient.mpImplGradient->mnOfsX) &&
+ (mpImplGradient->mnOfsY == rGradient.mpImplGradient->mnOfsY) &&
+ (mpImplGradient->mnStepCount == rGradient.mpImplGradient->mnStepCount) &&
+ (mpImplGradient->mnIntensityStart == rGradient.mpImplGradient->mnIntensityStart) &&
+ (mpImplGradient->mnIntensityEnd == rGradient.mpImplGradient->mnIntensityEnd) &&
+ (mpImplGradient->maStartColor == rGradient.mpImplGradient->maStartColor) &&
(mpImplGradient->maEndColor == rGradient.mpImplGradient->maEndColor) )
return sal_True;
else