summaryrefslogtreecommitdiffstats
path: root/src/sp-mesh-array.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2016-10-14 20:01:57 +0000
committertavmjong-free <tavmjong@free.fr>2016-10-14 20:01:57 +0000
commit32442aec84cc13f0a22fa1f07f3de701c6938e5d (patch)
treeedbe1df058728d31fddd7a8ece45d3f5ae254b61 /src/sp-mesh-array.cpp
parentFix bug:1633521 on powerstroke (diff)
downloadinkscape-32442aec84cc13f0a22fa1f07f3de701c6938e5d.tar.gz
inkscape-32442aec84cc13f0a22fa1f07f3de701c6938e5d.zip
Implement copying of objects with mesh gradients.
(bzr r15171)
Diffstat (limited to '')
-rw-r--r--src/sp-mesh-array.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-mesh-array.cpp b/src/sp-mesh-array.cpp
index 87329b3f2..042800fbf 100644
--- a/src/sp-mesh-array.cpp
+++ b/src/sp-mesh-array.cpp
@@ -1096,7 +1096,7 @@ static SPColor default_color( SPItem *item ) {
color = paint.value.color;
} else if ( paint.isPaintserver() ) {
SPObject const *server = item->style->getFillPaintServer();
- if ( SP_IS_GRADIENT(server) ) {
+ if ( SP_IS_GRADIENT(server) && SP_GRADIENT(server)->getVector() ) {
SPStop *firstStop = SP_GRADIENT(server)->getVector()->getFirstStop();
if ( firstStop ) {
color = firstStop->getEffectiveColor();