summaryrefslogtreecommitdiff
path: root/svx/source/sdr/attribute/sdrshadowtextattribute.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/sdr/attribute/sdrshadowtextattribute.cxx')
-rw-r--r--svx/source/sdr/attribute/sdrshadowtextattribute.cxx15
1 files changed, 10 insertions, 5 deletions
diff --git a/svx/source/sdr/attribute/sdrshadowtextattribute.cxx b/svx/source/sdr/attribute/sdrshadowtextattribute.cxx
index 8d08b770a7a0..705981a62c16 100644
--- a/svx/source/sdr/attribute/sdrshadowtextattribute.cxx
+++ b/svx/source/sdr/attribute/sdrshadowtextattribute.cxx
@@ -25,9 +25,11 @@ namespace drawinglayer::attribute
{
SdrShadowTextAttribute::SdrShadowTextAttribute(
const SdrShadowAttribute& rShadow,
- const SdrTextAttribute& rTextAttribute)
+ const SdrTextAttribute& rTextAttribute,
+ const SdrGlowAttribute& rGlow)
: maShadow(rShadow),
- maTextAttribute(rTextAttribute)
+ maTextAttribute(rTextAttribute),
+ maGlow(rGlow)
{
}
@@ -39,7 +41,8 @@ namespace drawinglayer::attribute
SdrShadowTextAttribute::SdrShadowTextAttribute(const SdrShadowTextAttribute& rCandidate)
: maShadow(rCandidate.getShadow()),
- maTextAttribute(rCandidate.getText())
+ maTextAttribute(rCandidate.getText()),
+ maGlow(rCandidate.maGlow)
{
}
@@ -47,6 +50,7 @@ namespace drawinglayer::attribute
{
maShadow = rCandidate.getShadow();
maTextAttribute = rCandidate.getText();
+ maGlow = rCandidate.maGlow;
return *this;
}
@@ -54,13 +58,14 @@ namespace drawinglayer::attribute
bool SdrShadowTextAttribute::isDefault() const
{
return (getShadow().isDefault()
- && getText().isDefault());
+ && getText().isDefault() && maGlow.isDefault());
}
bool SdrShadowTextAttribute::operator==(const SdrShadowTextAttribute& rCandidate) const
{
return (getShadow() == rCandidate.getShadow()
- && getText() == rCandidate.getText());
+ && getText() == rCandidate.getText()
+ && maGlow.isDefault());
}
} // end of namespace