diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2014-03-12 20:15:38 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2014-03-12 20:15:38 +0000 |
| commit | 3697b9ed4fa85fc4deb9a9069dc7397fbedc2003 (patch) | |
| tree | b1e8aa49ce94542b41231eb36c6e804ec2b3e08c /src/document.cpp | |
| parent | update to trunk (diff) | |
| parent | incorrect gradient transform on copy&paste.. committing for mathog (diff) | |
| download | inkscape-3697b9ed4fa85fc4deb9a9069dc7397fbedc2003.tar.gz inkscape-3697b9ed4fa85fc4deb9a9069dc7397fbedc2003.zip | |
update to trunk
(bzr r11950.1.291)
Diffstat (limited to 'src/document.cpp')
| -rw-r--r-- | src/document.cpp | 3 |
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; |
