summaryrefslogtreecommitdiffstats
path: root/src/gradient-chemistry.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2016-10-08 00:30:57 +0000
committerjabiertxof <info@marker.es>2016-10-08 00:30:57 +0000
commitbf899f7b2615bc40094815c81f7a127a42822f8e (patch)
tree8b30db7baf42c2051c1de654779dcb3082cbe39a /src/gradient-chemistry.cpp
parentDoc rotate start (diff)
parentFix bug:1622321 on powerstroke (diff)
downloadinkscape-bf899f7b2615bc40094815c81f7a127a42822f8e.tar.gz
inkscape-bf899f7b2615bc40094815c81f7a127a42822f8e.zip
Update to trunk
(bzr r15142.1.2)
Diffstat (limited to 'src/gradient-chemistry.cpp')
-rw-r--r--src/gradient-chemistry.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gradient-chemistry.cpp b/src/gradient-chemistry.cpp
index 061fadbaa..cf5cda180 100644
--- a/src/gradient-chemistry.cpp
+++ b/src/gradient-chemistry.cpp
@@ -434,6 +434,11 @@ SPGradient *sp_gradient_convert_to_userspace(SPGradient *gr, SPItem *item, gchar
return gr;
}
+ // FIXME Transforming a mesh gradient is more complicated... probably need to add function to SPMeshArray.wq
+ if ( gr && SP_IS_MESHGRADIENT( gr ) ) {
+ return gr;
+ }
+
// First, fork it if it is shared
gr = sp_gradient_fork_private_if_necessary(gr, gr->getVector(),
SP_IS_RADIALGRADIENT(gr) ? SP_GRADIENT_TYPE_RADIAL : SP_GRADIENT_TYPE_LINEAR, item);