summaryrefslogtreecommitdiffstats
path: root/src/document.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2014-03-12 20:15:38 +0000
committerJabiertxof <jtx@jtx.marker.es>2014-03-12 20:15:38 +0000
commit3697b9ed4fa85fc4deb9a9069dc7397fbedc2003 (patch)
treeb1e8aa49ce94542b41231eb36c6e804ec2b3e08c /src/document.cpp
parentupdate to trunk (diff)
parentincorrect gradient transform on copy&paste.. committing for mathog (diff)
downloadinkscape-3697b9ed4fa85fc4deb9a9069dc7397fbedc2003.tar.gz
inkscape-3697b9ed4fa85fc4deb9a9069dc7397fbedc2003.zip
update to trunk
(bzr r11950.1.291)
Diffstat (limited to 'src/document.cpp')
-rw-r--r--src/document.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/document.cpp b/src/document.cpp
index d71fd97df..4756110f6 100644
--- a/src/document.cpp
+++ b/src/document.cpp
@@ -1552,7 +1552,8 @@ void SPDocument::importDefs(SPDocument *source)
SPGradient *gr = SP_GRADIENT(src);
for (SPObject *trg = this->getDefs()->firstChild() ; trg ; trg = trg->getNext()) {
if (trg && SP_IS_GRADIENT(trg) && src != trg) {
- if (gr->isEquivalent(SP_GRADIENT(trg))) {
+ if (gr->isEquivalent(SP_GRADIENT(trg)) &&
+ gr->isAligned(SP_GRADIENT(trg))) {
// Change object references to the existing equivalent gradient
change_def_references(src, trg);
duplicate = true;