diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2016-10-14 20:01:57 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2016-10-14 20:01:57 +0000 |
| commit | 32442aec84cc13f0a22fa1f07f3de701c6938e5d (patch) | |
| tree | edbe1df058728d31fddd7a8ece45d3f5ae254b61 /src/sp-mesh-array.cpp | |
| parent | Fix bug:1633521 on powerstroke (diff) | |
| download | inkscape-32442aec84cc13f0a22fa1f07f3de701c6938e5d.tar.gz inkscape-32442aec84cc13f0a22fa1f07f3de701c6938e5d.zip | |
Implement copying of objects with mesh gradients.
(bzr r15171)
Diffstat (limited to 'src/sp-mesh-array.cpp')
| -rw-r--r-- | src/sp-mesh-array.cpp | 2 |
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(); |
