summaryrefslogtreecommitdiffstats
path: root/src/sp-gradient.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2016-10-20 21:56:38 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2016-10-20 21:56:38 +0000
commit42d434bcfcddb8519272144ec8b3b579bb470238 (patch)
tree2039460440b00482f41e8e9395a49b6d2fa789f7 /src/sp-gradient.cpp
parentcosmetic change (diff)
downloadinkscape-42d434bcfcddb8519272144ec8b3b579bb470238.tar.gz
inkscape-42d434bcfcddb8519272144ec8b3b579bb470238.zip
Fix gradient comparison.
(bzr r15183)
Diffstat (limited to 'src/sp-gradient.cpp')
-rw-r--r--src/sp-gradient.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-gradient.cpp b/src/sp-gradient.cpp
index 49f117a51..746c7fa41 100644
--- a/src/sp-gradient.cpp
+++ b/src/sp-gradient.cpp
@@ -127,7 +127,7 @@ bool SPGradient::isEquivalent(SPGradient *that)
bool effective = true;
while (effective && (as && bs)) {
if (!as->getEffectiveColor().isClose(bs->getEffectiveColor(), 0.001) ||
- as->offset != bs->offset) {
+ as->offset != bs->offset || as->opacity != bs->opacity ) {
effective = false;
break;
}